Skip to content

Commit

Permalink
Format files
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisRayM committed Dec 10, 2020
1 parent 55b1901 commit 1412968
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion onadata/apps/api/viewsets/data_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ def set_object_list(
xform, query=query, sort=sort, start_index=start,
limit=limit, fields=fields
)
self.etag_hash = get_etag_hash_from_query(records, sql, params)
self.etag_hash = get_etag_hash_from_query(
records, sql, params)
except ValueError as e:
raise ParseError(text(e))
except DataError as e:
Expand Down
3 changes: 2 additions & 1 deletion onadata/libs/pagination.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from django.core.paginator import Paginator
from rest_framework.pagination import PageNumberPagination, InvalidPage, NotFound
from rest_framework.pagination import (
PageNumberPagination, InvalidPage, NotFound)


class StandardPageNumberPagination(PageNumberPagination):
Expand Down

0 comments on commit 1412968

Please sign in to comment.