Explorar el Código

修改查找ip地区的逻辑

tanghongbin hace 4 años
padre
commit
e7b715c716
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: