소스 검색

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] = {}