fixed ing_map messup
This commit is contained in:
parent
23e773754c
commit
1020c358bb
5 changed files with 968 additions and 968 deletions
964
ing_map.json
964
ing_map.json
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
|||
const ING_DB_VERSION = 6;
|
||||
const ING_DB_VERSION = 7;
|
||||
|
||||
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.js
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ ings = ing_data
|
|||
#this data does not have request :)
|
||||
|
||||
import os
|
||||
if os.path.exists("ing_map.json"):
|
||||
with open("ing_map.json","r") as ing_mapfile:
|
||||
if os.path.exists("../ing_map.json"):
|
||||
with open("../ing_map.json","r") as ing_mapfile:
|
||||
ing_map = json.load(ing_mapfile)
|
||||
else:
|
||||
ing_map = {ing["name"]: i for i, ing in enumerate(ings)}
|
||||
|
|
Loading…
Reference in a new issue