Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,14 +14,14 @@ pn.extension('vega')
|
|
14 |
events={}
|
15 |
nations = ['Italy','England','Germany','France','Spain','European_Championship','World_Cup']
|
16 |
for nation in nations:
|
17 |
-
with open('
|
18 |
events[nation] = json.load(json_data)
|
19 |
|
20 |
# loading the match data
|
21 |
matches={}
|
22 |
nations = ['Italy','England','Germany','France','Spain','European_Championship','World_Cup']
|
23 |
for nation in nations:
|
24 |
-
with open('
|
25 |
matches[nation] = json.load(json_data)
|
26 |
|
27 |
# loading the players data
|
|
|
14 |
events={}
|
15 |
nations = ['Italy','England','Germany','France','Spain','European_Championship','World_Cup']
|
16 |
for nation in nations:
|
17 |
+
with open('events/events_%s.json' %nation) as json_data:
|
18 |
events[nation] = json.load(json_data)
|
19 |
|
20 |
# loading the match data
|
21 |
matches={}
|
22 |
nations = ['Italy','England','Germany','France','Spain','European_Championship','World_Cup']
|
23 |
for nation in nations:
|
24 |
+
with open('matches/matches_%s.json' %nation) as json_data:
|
25 |
matches[nation] = json.load(json_data)
|
26 |
|
27 |
# loading the players data
|