Explorar o código

修改查找ip地区的逻辑

tanghongbin %!s(int64=4) %!d(string=hai) anos
pai
achega
e7b715c716
Modificáronse 1 ficheiros con 1 adicións e 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: