Skip to content

Commit

Permalink
save_30_days_usage bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ARC-MX committed May 13, 2024
1 parent 1d287b7 commit 009cd2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/data_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def _get_yesterday_usage(self, driver):
# 增加储存30天用电量的到mongodb的函数
def save_30_days_usage(self, driver, user_id):
"""储存30天用电量"""
self._click_button(driver, By.XPATH, "//*[@id='pane-second']/div[1]/label[2]/span[2]")
self._click_button(driver, By.XPATH, "//*[@id='pane-second']/div[1]/div/label[2]/span[1]")
time.sleep(self.RETRY_WAIT_TIME_OFFSET_UNIT)
# 等待30天用电量的数据出现
usage_element = driver.find_element(By.XPATH,
Expand Down

0 comments on commit 009cd2a

Please sign in to comment.