Skip to content

Commit

Permalink
fixup! Add a fake dataset for the constituency URL
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Mar 27, 2024
1 parent e670706 commit 225168b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hub/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ def data(self, as_dict=False, mp_name=False):
continue
elif col["name"] == "url":
for row in self.query():
# TODO: How could we get the real domain in here? Can’t use request.get_host!
area_data[row.name]["URL"].append(f"https://www.localintelligencehub.com{row.get_absolute_url()}")
area_data[row.name]["URL"].append(

Check warning on line 218 in hub/mixins.py

View check run for this annotation

Codecov / codecov/patch

hub/mixins.py#L218

Added line #L218 was not covered by tests
f"{self.request.build_absolute_uri(row.get_absolute_url())}"
)
continue

Check warning on line 221 in hub/mixins.py

View check run for this annotation

Codecov / codecov/patch

hub/mixins.py#L221

Added line #L221 was not covered by tests

dataset = col["dataset"]
Expand Down

0 comments on commit 225168b

Please sign in to comment.