Browse Source

Fix generation from lkrz file

Lertsenem 2 years ago
parent
commit
809b999ab3
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lokrez/__init__.py

+ 4 - 1
lokrez/__init__.py

@@ -123,7 +123,10 @@ def get_infos_from_file(
123 123
 
124 124
     log.info("Loading data from '{}'".format(str(lkrz_file_path)))
125 125
 
126
-    if s in lkrz:
126
+    top_players = {}
127
+    tournament = None
128
+
129
+    for s in lkrz:
127 130
         section = lkrz[s]
128 131
         if s == "Tournament":
129 132
             tournament = smashgg.Tournament(