made DPS/DPM calculator use the data from the json file, removed the search bar from the calculator, and made it so the calculator displays the stats of the picked gun. Moved JSON from / to /static, this doesn't seem to have changed anything. filterWeapons.js has been updated with the required functions so the calculator can spit out the stats

This commit is contained in:
IM23a-spirgif
2024-09-14 23:34:27 +02:00
parent b44ff431b2
commit 420a0dc497
4 changed files with 64 additions and 106 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import json
app = Flask(__name__)
# Load the data from the JSON file
with open('data.json') as f:
with open('static/data.json') as f:
guns = json.load(f)