浏览代码

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

locky 3 年之前
父节点
当前提交
16a53c9392
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/EquipmentInfo.py

+ 1 - 1
Controller/EquipmentInfo.py

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