Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlamallama committed Feb 1, 2024
1 parent 1f47ea3 commit 3c101e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contentrepo/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"default": dj_database_url.config(
default=os.environ.get(
"CONTENTREPO_DATABASE",
"postgres://postgres:myPassword@localhost/contentrepo",
"postgres://postgres@localhost/contentrepo",
),
engine="django.db.backends.postgresql",
)
Expand Down
2 changes: 1 addition & 1 deletion home/import_content_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def from_flat(cls, row: dict[str, str]) -> "ContentRow":
related_pages=deserialise_list(row.pop("related_pages", "")),
example_values=deserialise_list(row.pop("example_values", "")),
buttons=json.loads(row.pop("buttons", "")) if row.get("buttons") else [],
footer=str(row.pop("footer")) if row.get("footer") else None,
footer=row.pop("footer") if row.get("footer") else None,
**row,
)

Expand Down

0 comments on commit 3c101e4

Please sign in to comment.