diff --git a/btc_tracker/kraken_fetch.py b/btc_tracker/kraken_fetch.py index 4660ee4..ab192be 100755 --- a/btc_tracker/kraken_fetch.py +++ b/btc_tracker/kraken_fetch.py @@ -70,10 +70,9 @@ def read_keys(): "user_name": "user_ecdsa_public key" } } - empty_userkeys_json = json.dumps(empty_userkeys) with open(KEYSFILE, "w", encoding='utf-8') as nfile: print('You seem be lacking the users key file, created example for you. Exiting') - json.dump(empty_userkeys_json, nfile) + json.dump(empty_userkeys, nfile, indent=2) raise FileNotFoundError return {} diff --git a/btc_tracker/userkeys.json b/btc_tracker/userkeys.json index 86add59..6683f22 100644 --- a/btc_tracker/userkeys.json +++ b/btc_tracker/userkeys.json @@ -1,5 +1,5 @@ { "user_publickeys": { - "user1": "f1debc13fb21fe0eee54525aa4f8aae5733b201c755edaa55f8893c90aa375b261a62eaa3110651ac5d7705d402581256a37508b0a1ca28bd919ea44710d9c88" + "user_name": "user_ecdsa_public key" } -} +} \ No newline at end of file diff --git a/btc_tracker/userkeys.json_bak b/btc_tracker/userkeys.json_bak new file mode 100644 index 0000000..86add59 --- /dev/null +++ b/btc_tracker/userkeys.json_bak @@ -0,0 +1,5 @@ +{ + "user_publickeys": { + "user1": "f1debc13fb21fe0eee54525aa4f8aae5733b201c755edaa55f8893c90aa375b261a62eaa3110651ac5d7705d402581256a37508b0a1ca28bd919ea44710d9c88" + } +}