Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlamallama committed Feb 5, 2024
1 parent eb70fb0 commit 963316a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/import_content_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ class ContentRow:
doc_link: str = ""
media_link: str = ""
related_pages: list[str] = field(default_factory=list)
footer: str | None = None
footer: str = ""

@classmethod
def from_flat(cls, row: dict[str, str]) -> "ContentRow":
Expand All @@ -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=row.pop("footer") if row.get("footer") else None,
footer=row.pop("footer") if row.get("footer") else "",
**row,
)

Expand Down

0 comments on commit 963316a

Please sign in to comment.