feat: Update playlist loading method to use current playlist on startup
This commit is contained in:
7
main.py
7
main.py
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user