mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 11:19:59 +00:00
Add barcode scanning and meal selection features
Introduces a barcode scanner page using the camera for food item entry, adds routes for selecting meal types and scanning products, and updates the test.html template to allow adding items to specific meals. Also updates branding in base.html, changes the Flask secret key, and enables SSL by default in app.py.
This commit is contained in:
10
app.py
10
app.py
@@ -13,7 +13,7 @@ from application.user.routes import user_bp
|
||||
from typing import Optional
|
||||
|
||||
# Config
|
||||
app.config["SECRET_KEY"] = "Iman"
|
||||
app.config["SECRET_KEY"] = "Stef123"
|
||||
|
||||
login_manager.login_view = "login" # type: ignore
|
||||
|
||||
@@ -81,5 +81,9 @@ def scan():
|
||||
# Run
|
||||
|
||||
if __name__ == "__main__":
|
||||
# app.run(host="0.0.0.0", debug=True, ssl_context=("cert.pem", "key.pem"))
|
||||
app.run(host="0.0.0.0", debug=True)
|
||||
app.run(
|
||||
host="0.0.0.0",
|
||||
port=443,
|
||||
debug=True,
|
||||
ssl_context=("cert.pem", "key.pem"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user