mirror of
https://github.com/krateng/maloja.git
synced 2025-07-09 03:04:07 -04:00
Merge remote-tracking branch 'origin/next_minor_version' into next_minor_version
This commit is contained in:
commit
2959154f2f
@ -389,7 +389,23 @@ def get_charts_tracks_external(k_filter, k_limit, k_delimit, k_amount):
|
|||||||
"list":result
|
"list":result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@api.get("charts/albums")
|
||||||
|
@catch_exceptions
|
||||||
|
@add_common_args_to_docstring(filterkeys=True,limitkeys=True)
|
||||||
|
def get_charts_albums_external(**keys):
|
||||||
|
"""Returns album charts
|
||||||
|
|
||||||
|
:return: list (List)
|
||||||
|
:rtype: Dictionary"""
|
||||||
|
k_filter, k_time, _, _, _ = uri_to_internal(keys)
|
||||||
|
ckeys = {**k_filter, **k_time}
|
||||||
|
|
||||||
|
result = database.get_charts_albums(**ckeys)
|
||||||
|
|
||||||
|
return {
|
||||||
|
"status":"ok",
|
||||||
|
"list":result
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@api.get("pulse")
|
@api.get("pulse")
|
||||||
@ -472,7 +488,23 @@ def get_top_tracks_external(k_filter, k_limit, k_delimit, k_amount):
|
|||||||
"list":results
|
"list":results
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@api.get("top/albums")
|
||||||
|
@catch_exceptions
|
||||||
|
@add_common_args_to_docstring(limitkeys=True,delimitkeys=True)
|
||||||
|
def get_top_albums_external(**keys):
|
||||||
|
"""Returns respective number 1 albums in specified time frames
|
||||||
|
|
||||||
|
:return: list (List)
|
||||||
|
:rtype: Dictionary"""
|
||||||
|
_, k_time, k_internal, _, _ = uri_to_internal(keys)
|
||||||
|
ckeys = {**k_time, **k_internal}
|
||||||
|
|
||||||
|
results = database.get_top_albums(**ckeys)
|
||||||
|
|
||||||
|
return {
|
||||||
|
"status":"ok",
|
||||||
|
"list":results
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@api.get("artistinfo")
|
@api.get("artistinfo")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user