Fix #8
This commit is contained in:
pare
469488393a
commit
f740c5170a
S'han modificat 1 arxius amb 3 adicions i 3 eliminacions
6
query.py
6
query.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Referencia en una nova incidència