mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 11:54:42 +00:00
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:
1 parent
f62fe0ac24
commit
ec5889515b
5 files changed
+21
-29
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user