Browse Source

Iterate through items

Michael Schwarz 8 years ago
parent
commit
2e772f546a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/ffpb.py

+ 1 - 1
modules/ffpb.py

@@ -646,7 +646,7 @@ def ffpb_fetch_stats(bot, url, memoryid):
     nodes_total = 0
     clients_count = 0
 
-    for node in data['nodes']:
+    for key,node in data['nodes'].iteritems():
         if node['flags']['gateway'] or (node['flags'].has_key('client') and node['flags']['client']):
             continue