show recently added items based on by sorting all tracks

.ie. will still show recent items even if they are 3 months old (is this good or bad?)
This commit is contained in:
mungai-njoroge
2024-02-14 23:09:05 +03:00
parent f62fe0ac24
commit ec5889515b
5 changed files with 21 additions and 29 deletions
+1 -3
View File
@@ -10,12 +10,10 @@ parser.add_argument("limit", type=int, required=False, default=7, location="args
class RecentlyAdded(Resource):
def get(self):
cutoff = 14
args = parser.parse_args()
limit = args["limit"]
return {"items": get_recent_items(cutoff, limit), "cutoff": cutoff}
return {"items": get_recent_items(limit)}
class RecentlyPlayed(Resource):