fix docker compose
This commit is contained in:
@@ -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 -----------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user