Bladeren bron

Merge branch 'test' of http://192.168.136.99:3000/servers/ASJServer

locky 3 jaren geleden
bovenliggende
commit
16a53c9392
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      Controller/EquipmentInfo.py

+ 1 - 1
Controller/EquipmentInfo.py

@@ -297,7 +297,7 @@ def deleteExpireEquipmentInfo(request):
     nowTime = int(time.time())
     nowTime = int(time.time())
     cursor = connections['mysql02'].cursor()
     cursor = connections['mysql02'].cursor()
     try:
     try:
-        for i in range(10):
+        for i in range(5):
             # 删除7天前的数据
             # 删除7天前的数据
             sql = "DELETE FROM `equipment_info` WHERE addTime<={} LIMIT 10000".format(nowTime - 3600 * 24 * 7)
             sql = "DELETE FROM `equipment_info` WHERE addTime<={} LIMIT 10000".format(nowTime - 3600 * 24 * 7)
             cursor.execute(sql)
             cursor.execute(sql)