fixed ing_map messup

This commit is contained in:
ferricles 2021-05-21 10:57:36 -07:00
parent 23e773754c
commit 1020c358bb
5 changed files with 968 additions and 968 deletions

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

View file

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

View file

@ -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)}