Quellcode durchsuchen

Juvenes does not use jsonp anymore for menu

Toni Fadjukoff vor 7 Jahren
Ursprung
Commit
8b168d81c9
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      juvenes.py

+ 1 - 1
juvenes.py Datei anzeigen

@@ -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: