get_artist_of_disc con cache
This commit is contained in:
@@ -61,7 +61,10 @@ def search_disc(request):
|
||||
@api_view(['GET'])
|
||||
def get_discs_of_artist(request, mbid):
|
||||
""" Obtiene todos los discos de un artista dado el mbid del artista"""
|
||||
return Response(medium.get_discs_of_artist(mbid))
|
||||
limit = int(request.GET.get('per_page', 10))
|
||||
page = int(request.GET.get('page', 1))
|
||||
|
||||
return Response(medium.get_discs_of_artist(mbid, limit, page))
|
||||
|
||||
|
||||
@api_view(['GET'])
|
||||
|
||||
Reference in New Issue
Block a user