Browse Source

更新获取数据的时间段

qingfeng 3 years ago
parent
commit
8be77e074b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      LIB/FRONTEND/soh/main.py

+ 1 - 1
LIB/FRONTEND/soh/main.py

@@ -21,7 +21,7 @@ if __name__ == "__main__":
     SNnums_6040=SNdata_6040['SN号']
     now_time=datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
     now_time=datetime.datetime.strptime(now_time,'%Y-%m-%d %H:%M:%S')
-    start_time=now_time-datetime.timedelta(days=1)
+    start_time=now_time-datetime.timedelta(days=31)
     end_time=str(now_time)
     start_time=str(start_time)