Jelajahi Sumber

修改查找ip地区的逻辑

tanghongbin 4 tahun lalu
induk
melakukan
e7b715c716
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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: