break down store.py into multiple files in a module

+ fix last updated date bug
This commit is contained in:
geoffrey45
2023-03-25 03:05:38 +03:00
parent 43c480cf3e
commit d43dcbff46
26 changed files with 688 additions and 636 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import os
from flask import Blueprint, send_file, request
from app.db.store import Store
from app.store.tracks import TrackStore
api = Blueprint("track", __name__, url_prefix="/")
@@ -31,7 +31,7 @@ def send_track_file(trackhash: str):
if trackhash is None:
return msg, 404
tracks = Store.get_tracks_by_trackhashes([trackhash])
tracks = TrackStore.get_tracks_by_trackhashes([trackhash])
for track in tracks:
if track is None: