minor changes
This commit is contained in:
parent
958fb9378a
commit
4524637c6f
@ -105,7 +105,7 @@ class PlaylistAbl:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def remove_file(playlist_id, data):
|
def remove_file(playlist_id, data):
|
||||||
query = db.session.query(PlaylistFile) \
|
query = db.session.query(PlaylistFile) \
|
||||||
.filter(PlaylistFile.file_id == data['file_id']) \
|
.filter(PlaylistFile.id == data['file_id']) \
|
||||||
.first()
|
.first()
|
||||||
db.session.delete(query)
|
db.session.delete(query)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
@ -5,7 +5,6 @@ api = create_api()
|
|||||||
screen_manager = ScreenManager().getInstance()
|
screen_manager = ScreenManager().getInstance()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
api.run(host="0.0.0.0", port=5500, debug=True)
|
#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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user