浏览代码

修改查找ip地区的逻辑

tanghongbin 4 年之前
父节点
当前提交
e7b715c716
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/UserController.py

+ 1 - 1
Controller/UserController.py

@@ -3644,7 +3644,7 @@ def delete_local_account(username):
 def updateUserCountry(request):
     country_ip_qs = CountryIPModel.objects.filter()
     if country_ip_qs.exists():
-        country_ip_qs = country_ip_qs[0: 1000]
+        country_ip_qs = country_ip_qs[0: 100]
         ids = []
         redisObject = RedisObject(db=6)
         for country_ip in country_ip_qs: