mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 12:24:42 +00:00
fix playlist last update
+ create a recently added playlist on get api
This commit is contained in:
1 parent
9dff629e1f
commit
5a420214f2
5 files changed
+41
-21
No files matched your search
@@ -13,6 +13,5 @@ class RecentlyAdded(Resource):
|
||||
|
||||
args = parser.parse_args()
|
||||
limit = args["limit"]
|
||||
print(limit)
|
||||
|
||||
return {"items": get_recent_items(cutoff)[:limit], "cutoff": cutoff}
|
||||
return {"items": get_recent_items(cutoff, limit), "cutoff": cutoff}
|
||||
Reference in new issue
Block a user