feat: Update playlist loading method to use current playlist on startup

This commit is contained in:
JSC
2025-07-11 23:26:28 +02:00
parent 4f702d3302
commit 93897921fb
2 changed files with 17 additions and 16 deletions

View File

@@ -1,4 +1,5 @@
import logging
from dotenv import load_dotenv
from app import create_app, socketio
@@ -9,8 +10,8 @@ load_dotenv()
# Configure logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
datefmt='%H:%M:%S'
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
datefmt="%H:%M:%S",
)
@@ -18,7 +19,7 @@ def main() -> None:
"""Run the Flask application with SocketIO."""
app = create_app()
socketio.run(
app, debug=True, host="0.0.0.0", port=5000, allow_unsafe_werkzeug=True
app, debug=True, host="127.0.0.1", port=5000, allow_unsafe_werkzeug=True
)