Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#852 | Monthly usage report | added collecti…
Browse files Browse the repository at this point in the history
…on references in serializer
  • Loading branch information
snyaggarwal committed Aug 2, 2021
1 parent 880ef1f commit a1be32c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/reports/serializers.py
Expand Up @@ -14,6 +14,7 @@ class MonthlyUsageReportSerializer(serializers.Serializer): # pylint: disable=a
collections = JSONField(read_only=True)
source_versions = JSONField(read_only=True)
collection_versions = JSONField(read_only=True)
collection_references = JSONField(read_only=True)
concepts = JSONField(read_only=True)
mappings = JSONField(read_only=True)

Expand Down
3 changes: 1 addition & 2 deletions core/reports/views.py
Expand Up @@ -18,9 +18,8 @@ def get_serializer_context(self):
return context

def get_object(self, _=None):
is_verbose = self.is_verbose()
report = MonthlyUsageReport(
verbose=is_verbose,
verbose=self.is_verbose(),
start=self.request.query_params.get('start', None),
end=self.request.query_params.get('end', None)
)
Expand Down

0 comments on commit a1be32c

Please sign in to comment.