Преглед изворни кода

change client counting of nodes.json based cities (closes #1)

Helge Jung пре 9 година
родитељ
комит
c9bec79849
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      modules/ffpb.py

+ 1 - 3
modules/ffpb.py

@@ -586,9 +586,7 @@ def ffpb_fetch_stats(bot, url, memoryid):
         if 'legacy' in node['flags'] and node['flags']['legacy']:
             clients_count -= 1
 
-    for link in data['links']:
-        if link['type'] == 'client':
-            clients_count += 1
+        clients_count += node['clientcount']
 
     if not memoryid in bot.memory:
         bot.memory[memoryid] = {}