yf_yzl 2 лет назад
Родитель
Сommit
99252bd5ab
1 измененных файлов с 5 добавлено и 6 удалено
  1. 5 6
      scripts/cbd_msg.py

+ 5 - 6
scripts/cbd_msg.py

@@ -1,9 +1,4 @@
 # coding=utf-8
-from smartfarming.api.views.forecast.all_dict import insect_dict
-from smartfarming.models.pest_count import MongoCBDPestWarning
-from smartfarming.models.worm_forecast import MongoCBDphoto
-from smartfarming.models.sim_card import MongoMsg_Conf
-from django.conf import settings
 import os
 import sys
 import time
@@ -16,7 +11,11 @@ if local_path not in sys.path:
     sys.path.append(local_path)
 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kedong.settings")
 django.setup()
-
+from smartfarming.api.views.forecast.all_dict import insect_dict
+from smartfarming.models.pest_count import MongoCBDPestWarning
+from smartfarming.models.worm_forecast import MongoCBDphoto
+from smartfarming.models.sim_card import MongoMsg_Conf
+from django.conf import settings
 
 logger = logging.getLogger("other")