From bdb8258b8a3fb2b6dcb4593c40b892895175bc61 Mon Sep 17 00:00:00 2001 From: andrew21-mch Date: Wed, 27 Apr 2022 07:05:55 +0100 Subject: [PATCH 1/2] link storage --- src/app/data/db/linkstorage.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/app/data/db/linkstorage.py diff --git a/src/app/data/db/linkstorage.py b/src/app/data/db/linkstorage.py new file mode 100644 index 0000000..f760cbf --- /dev/null +++ b/src/app/data/db/linkstorage.py @@ -0,0 +1,10 @@ +import json + + +def linkStorage(): + """ + function to link games.son to the quiz object + """ + with open('src/app/data/db/games.json') as json_file: + games = json.load(json_file) + return games From 2a114586911b32f3caf0cf7ee69dffee7b622fc1 Mon Sep 17 00:00:00 2001 From: andrew21-mch Date: Wed, 27 Apr 2022 07:20:20 +0100 Subject: [PATCH 2/2] Revert "link storage" This reverts commit bdb8258b8a3fb2b6dcb4593c40b892895175bc61. --- src/app/data/db/linkstorage.py | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 src/app/data/db/linkstorage.py diff --git a/src/app/data/db/linkstorage.py b/src/app/data/db/linkstorage.py deleted file mode 100644 index f760cbf..0000000 --- a/src/app/data/db/linkstorage.py +++ /dev/null @@ -1,10 +0,0 @@ -import json - - -def linkStorage(): - """ - function to link games.son to the quiz object - """ - with open('src/app/data/db/games.json') as json_file: - games = json.load(json_file) - return games