This commit is contained in:
spla 2023-01-08 09:40:55 +01:00
pare 469488393a
commit f740c5170a

Veure arxiu

@ -203,7 +203,7 @@ class Query():
self.soft = self.soft.lower()
self.soft_version = nodeinfo_json['software']['version']
self.users = nodeinfo_json.get('usage').get('users').get('total') or '0'
if self.users > 1000000:
if int(self.users) > 1000000:
return
self.mau = nodeinfo_json.get('usage').get('users').get('activeMonth') or 0
@ -228,7 +228,7 @@ class Query():
self.soft = soft.lower()
self.soft_version = nodeinfo_json['server']['version']
self.users = nodeinfo_json['usage']['users']['total']
if self.users > 1000000:
if int(self.users) > 1000000:
return
self.mau = nodeinfo_json.get('usage').get('users').get('activeMonth') or 0
@ -256,7 +256,7 @@ class Query():
self.users = nodeinfo_json['stats']['user_count']
if self.users > 1000000:
if int(self.users) > 1000000:
return