Skip to content

Commit

Permalink
chore: Move logic under correct branch for records in OCDS Show
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 5, 2023
1 parent 2639a24 commit 687fe69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cove_ocds/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ def explore_ocds(request, pk):
template = "cove_ocds/explore_record.html"
if hasattr(json_data, "get") and hasattr(json_data.get("records"), "__iter__"):
context["records"] = json_data["records"]
if isinstance(json_data["records"], list) and len(json_data["records"]) < 100:
context["ocds_show_data"] = ocds_show_data(json_data, ocds_show_deref_schema)
else:
context["records"] = []
if isinstance(json_data["records"], list) and len(json_data["records"]) < 100:
context["ocds_show_data"] = ocds_show_data(json_data, ocds_show_deref_schema)
else:
context["release_or_record"] = "release"
ocds_show_schema = SchemaOCDS(record_pkg=False)
Expand Down

0 comments on commit 687fe69

Please sign in to comment.