yf_yzl %!s(int64=2) %!d(string=hai) anos
pai
achega
51a1d9cbce
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)
     # 更新数据