|
@@ -38,7 +38,7 @@ def get_restaurants(use_old, week):
|
38
|
38
|
for weekday in range(1,7):
|
39
|
39
|
url = "http://www.juvenes.fi/DesktopModules/Talents.LunchMenu/LunchMenuServices.asmx/GetMenuByWeekday?KitchenId={kitchen}&MenuTypeId={menutype}&Week={week}&Weekday={weekday}&lang='fi'&format=json".format(kitchen=kitchen, menutype=menutype, week=week, weekday=weekday)
|
40
|
40
|
temp_fname = "juvenes_{count}-{weekday}.temp.js".format(count=count, weekday=weekday)
|
41
|
|
- data = pnalib.get_jsonp_file(url, temp_fname, use_old, allow_old=False)
|
|
41
|
+ data = pnalib.get_json_file(url, temp_fname, use_old, allow_old=False)
|
42
|
42
|
if not data:
|
43
|
43
|
# Try to find problem
|
44
|
44
|
for concept in concepts:
|