From 0514893aef40160d5a46932f80fbda42e28e0401 Mon Sep 17 00:00:00 2001 From: Alex Kulikov Date: Fri, 14 Jun 2024 02:16:16 +0100 Subject: [PATCH] fix codestyle --- src/consts.py | 2 ++ src/trello/trello_objects.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/consts.py b/src/consts.py index fd93a70..81e3931 100644 --- a/src/consts.py +++ b/src/consts.py @@ -87,6 +87,7 @@ class TrelloCardColor(Enum): BLACK = "black" UNKNOWN = "unknown" + class BoardCardColor(Enum): BLACK = "propColorGray" BROWN = "propColorBrown" @@ -99,6 +100,7 @@ class BoardCardColor(Enum): RED = "propColorRed" UNKNOWN = "unknown" + class TrelloListAlias(Enum): TOPIC_SUGGESTION = "trello_list_name__topic_suggestion" TOPIC_READY = "trello_list_name__topic_ready" diff --git a/src/trello/trello_objects.py b/src/trello/trello_objects.py index c3183fe..997bef8 100644 --- a/src/trello/trello_objects.py +++ b/src/trello/trello_objects.py @@ -263,7 +263,7 @@ def from_focalboard_dict(cls, data): try: card.id = data["id"] card.name = html.escape(data["title"]) - # card.labels = [TrelloCardLabel.from_focalboard_dict(label) for label in data["labels"]] + # card.labels=[TrelloCardLabel.from_focalboard_dict(label) for label in data["labels"]] except Exception as e: card._ok = False logger.error(f"Bad card json {data}: {e}")