소스 검색

更新历史数据入库时间

林轩 1 년 전
부모
커밋
288731d74c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      crond_script/today_weather.py

+ 2 - 2
crond_script/today_weather.py

@@ -106,7 +106,7 @@ def main():
                     day_obj.content = str(today_data)
                     day_obj.save()
                     try:
-                        if now_hour == 9:
+                        if now_hour == 19:
                             HistoryDayData.objects.create(
                                 cityid = day_obj.cityid,
                                 content = today_data,
@@ -127,7 +127,7 @@ def main():
                         day_obj.save()
                         print(f"request again success: {day_obj.cityid}")
                         try:
-                            if now_hour == 9:
+                            if now_hour == 19:
                                 HistoryDayData.objects.create(
                                     cityid = day_obj.cityid,
                                     content = today_data,