minor changes

This commit is contained in:
grimhilt 2023-08-30 14:38:48 +02:00
parent 958fb9378a
commit 4524637c6f
2 changed files with 3 additions and 4 deletions

View File

@ -105,7 +105,7 @@ class PlaylistAbl:
@staticmethod
def remove_file(playlist_id, data):
query = db.session.query(PlaylistFile) \
.filter(PlaylistFile.file_id == data['file_id']) \
.filter(PlaylistFile.id == data['file_id']) \
.first()
db.session.delete(query)
db.session.commit()

View File

@ -5,7 +5,6 @@ api = create_api()
screen_manager = ScreenManager().getInstance()
if __name__ == '__main__':
api.run(host="0.0.0.0", port=5500, debug=True)
#api.run(host="0.0.0.0", port=5500)
#api.run(host="0.0.0.0", port=5500, debug=True)
api.run(host="0.0.0.0", port=5500)