Bläddra i källkod

Juvenes does not use jsonp anymore for menu

Toni Fadjukoff 7 år sedan
förälder
incheckning
8b168d81c9
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      juvenes.py

+ 1 - 1
juvenes.py Visa fil

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