mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
fix migrations deleting all playlists
This commit is contained in:
committed by
Mungai Njoroge
parent
ae031014a9
commit
99ec11565c
+1
-2
@@ -26,12 +26,11 @@ api = APIBlueprint("playlists", __name__, url_prefix="/playlists", abp_tags=[tag
|
||||
|
||||
PL = SQLitePlaylistMethods
|
||||
|
||||
|
||||
class SendAllPlaylistsQuery(BaseModel):
|
||||
no_images: bool = Field(False, description="Whether to include images")
|
||||
|
||||
|
||||
@api.get("", methods=["GET"])
|
||||
@api.get("")
|
||||
def send_all_playlists(query: SendAllPlaylistsQuery):
|
||||
"""
|
||||
Gets all the playlists.
|
||||
|
||||
+1
-2
@@ -138,9 +138,8 @@ def get_top_results(query: TopResultsQuery):
|
||||
|
||||
Returns the top results for the given query.
|
||||
"""
|
||||
|
||||
query = query.q
|
||||
limit = query.limit
|
||||
query = query.q
|
||||
|
||||
in_quotes = query_in_quotes(query)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user