Merge remote-tracking branch 'origin/main'

This commit is contained in:
IM23a-spirgif
2024-09-16 14:49:03 +02:00
5 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import json
app = Flask(__name__)
# Load the data from the JSON file
with open('static/data.json') as f:
with open('static/json/data.json') as f:
guns = json.load(f)
+2 -2
View File
@@ -36,7 +36,7 @@ function populateOperatives(operatives) {
// Function to fetch weapons data from JSON
function fetchWeaponsData() {
fetch('static/data.json') // Adjust the path to the actual location of your JSON file
fetch('static/json/data.json') // Adjust the path to the actual location of your JSON file
.then(response => response.json())
.then(data => {
weapons = data; // Store the fetched data in the global 'weapons' variable
@@ -90,7 +90,7 @@ function updateWeaponStats(weapon) {
// Function to fetch and populate modifiers from the JSON file
function fetchModifiers() {
fetch('static/modifiers.json') // Adjust the path to your JSON file
fetch('static/json/modifiers.json') // Adjust the path to your JSON file
.then(response => response.json())
.then(data => {
populateModifiers(data);