fix docker compose

This commit is contained in:
2025-09-17 09:16:46 +03:00
parent 58e69ba69e
commit cd1b3db6ec
2 changed files with 6 additions and 4 deletions

View File

@@ -2,11 +2,13 @@ from flask import Flask, request, jsonify
from tinydb import TinyDB, Query, where
from tinydb.operations import set as ops_set
import json
import os
app = Flask(__name__)
# Single TinyDB file for now (can be swapped to per-table later)
db = TinyDB("db.json")
DB_PATH = os.getenv("DB_PATH", "db.json")
db = TinyDB(DB_PATH)
# --- Helpers -----------------------------------------------------------------