Skip to content

Commit

Permalink
Merge pull request #13 from pyobs/develop
Browse files Browse the repository at this point in the history
fixed 'count' in frames endpoint
  • Loading branch information
thusser authored Jul 1, 2021
2 parents 44a1079 + 71cb155 commit b7d4560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyobs_archive/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def frames_view(request):
results = [frame.get_info() for frame in data[int(offset):int(offset) + int(limit)]]

# return them
return JsonResponse({'count': len(results), 'results': results})
return JsonResponse({'count': data.count(), 'results': results})


@api_view(['GET'])
Expand Down

0 comments on commit b7d4560

Please sign in to comment.