|
@@ -3,7 +3,6 @@
|
|
|
# @Time : 2023/12/11 15:47
|
|
|
import threading
|
|
|
|
|
|
-from django.db import close_old_connections
|
|
|
from django.views import View
|
|
|
|
|
|
from Object.RedisObject import RedisObject
|
|
@@ -65,4 +64,3 @@ class CronTaskView(View):
|
|
|
encode('UTF-8', 'ignore').decode('UTF-8')
|
|
|
equipment_info_list.append(equipment_info_model(**equipment_info_data))
|
|
|
equipment_info_model.objects.bulk_create(equipment_info_list)
|
|
|
- close_old_connections()
|