fix playlist last update

+ create a recently added playlist on get api
This commit is contained in:
mungai-njoroge
2023-12-03 12:56:56 +03:00
parent 9dff629e1f
commit 5a420214f2
5 changed files with 41 additions and 21 deletions
+1 -2
View File
@@ -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}