yf_yzl 2 vuotta sitten
vanhempi
commit
51a1d9cbce
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      crond_script/crond_weather.py

+ 2 - 2
crond_script/crond_weather.py

@@ -78,8 +78,8 @@ def init_data():
 
 def main():
     district = District.objects.all() 
-    if not district:
-        init_data()
+    # if not district:
+    #     init_data()
     logging.warning("up...")
     results = District.objects.filter(id__gt = 65)
     # 更新数据