mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
fix playlist last update
+ create a recently added playlist on get api
This commit is contained in:
@@ -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