Skip to content
This repository has been archived by the owner on Feb 2, 2020. It is now read-only.

Commit

Permalink
BUG not getting the right stamp for the old file
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr authored Jan 30, 2020
1 parent 66f3059 commit f45dcb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cache_app_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
with open("data/latest.json", "r") as fp:
old_data = json.load(fp)

back_pth = "data/data_%s.json" % list(old_data["rates"].keys())[-1]
back_stamp = list(old_data["github-actions"]["rates"].keys())[-1]
back_pth = "data/data_%s.json" % back_stamp
with open(back_pth, "w") as fp:
json.dump(old_data, fp)

Expand Down

0 comments on commit f45dcb8

Please sign in to comment.