fix playlist last update

+ create a recently added playlist on get api
This commit is contained in:
mungai-njoroge committed 2023-12-03 12:56:56 +03:00
1 parent 9dff629e1f
commit 5a420214f2
5 files changed
+41 -21

No files matched your search

+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}