This commit is contained in:
4
app.py
4
app.py
@@ -9,7 +9,7 @@ from flask import Flask, render_template_string, redirect, url_for
|
||||
import sqlite3
|
||||
|
||||
app = Flask(__name__)
|
||||
DB_FILE = 'counter.db'
|
||||
DB_FILE = '/db/counter.db'
|
||||
|
||||
def init_db():
|
||||
"""Initialize the database and set the starting number to 0 if it doesn't exist."""
|
||||
@@ -98,4 +98,4 @@ if __name__ == '__main__':
|
||||
# Initialize the database before starting the server
|
||||
init_db()
|
||||
# Run the app in debug mode
|
||||
app.run(debug=True)
|
||||
app.run(debug=True)
|
||||
|
||||
Reference in New Issue
Block a user