From bb9382c73f76083bf2ffe4f77909826461ac0a05 Mon Sep 17 00:00:00 2001 From: Zach H Date: Tue, 19 Jul 2016 00:50:34 -0400 Subject: [PATCH] readme --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cc708da..015f1e1 100644 --- a/README.md +++ b/README.md @@ -12,15 +12,18 @@ The database starts as a copy of the MTGJSON source of AllSets-x.json, then we m To turn your JSON file into a SQLite file: `./json_to_sql.py create_new_db db_location json_file_location` + Where: * create_new_db is 0 (no) or 1 (yes) * db_location is location where the database is OR where you want to store the newly created database * json_file_location is the location of the JSON file you want to import to your database To turn your SQLite file into a JSON file: -`./sql_to_json.py db_location output_file_location` +`./sql_to_json.py db_location output_file_location sets_or_cards` + Where: * db_location is the location where the database is * output_file_location is where you want to store the newly created JSON file +* sets_or_cards is "sets" (AllSets-x.json will be generated) or "cards" (AllCards-x.json will be generated) You can test to make sure your initial JSON is the same as your output JSON via `testing_mac.sh` \ No newline at end of file