You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
518 B
24 lines
518 B
from parse import *
|
|
from calc import calc
|
|
from db import *
|
|
|
|
'''
|
|
# Загружаем локализацию
|
|
locales_url = ['medicine', 'chemicals']
|
|
locales = load_locales(locales_url)
|
|
|
|
# Загружаем сырые рецепты
|
|
recipes_url = ['medicine']
|
|
raw_recipes = load_recipes(recipes_url)
|
|
|
|
# Локализируем
|
|
recipes = localize(raw_recipes, locales)
|
|
# Сохранаяем данные
|
|
save(recipes, 'raw_db.json')
|
|
'''
|
|
|
|
rec = load('raw_db.json')
|
|
|
|
# Делаем предрасчёты
|
|
#calculated =
|