mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +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:
@@ -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