yf_yzl hace 2 años
padre
commit
51a1d9cbce
Se han modificado 1 ficheros con 2 adiciones y 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)
     # 更新数据