Add more data
Also renamed some of the files and had to change some code to account for the new names.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from flashcards.decks import create_deck
|
||||
from flashcards.maps import create_maps, read_data_to_dict
|
||||
from flashcards.maps import create_maps, read_name_data_to_dict
|
||||
|
||||
|
||||
|
||||
@@ -9,20 +9,20 @@ deck_fname = 'research-costs'
|
||||
|
||||
# specify the namelist to be used to create the deck
|
||||
# give the relative path of the file from config.namelists_dir
|
||||
namelist = 'research.txt'
|
||||
namelist = 'research-standard.txt'
|
||||
|
||||
# key into json file specifying which data you want
|
||||
# uncomment either 'units_buildings' or 'techs'
|
||||
#data_json_key = 'units_buildings'
|
||||
data_json_key = 'techs'
|
||||
#name_json_key = 'units_buildings'
|
||||
name_json_key = 'techs'
|
||||
|
||||
# --- create list of notes ---
|
||||
|
||||
# read in data
|
||||
data = read_data_to_dict(data_json_key)
|
||||
data = read_name_data_to_dict(name_json_key)
|
||||
|
||||
# create maps between names and numbers based on namelist
|
||||
names, _ = create_maps(namelist, data_json_key)
|
||||
names, _ = create_maps(namelist, name_json_key)
|
||||
|
||||
# create cards based on data and maps
|
||||
notes = []
|
||||
|
||||
Reference in New Issue
Block a user