Skip to content

Commit

Permalink
fix pep
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyqu committed Apr 28, 2024
1 parent d848ca4 commit ce42f61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/db/db_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ def fill_team_roles(self, member_roles: Dict[str, List[str]]):
def find_author_telegram_by_trello(self, trello_id: str):
# TODO: make batch queries
session = self.Session()
author = session.query(Author).filter((Author.trello == trello_id) | (Author.focalboard == trello_id)).first()
author = session.query(Author).filter(
(Author.trello == trello_id) | (Author.focalboard == trello_id)
).first()
if author is None:
logger.warning(f"Telegram id not found for author {trello_id}")
return None
Expand Down
2 changes: 1 addition & 1 deletion src/db/db_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Author(Base):
focalboard = Column(String)

def __repr__(self):
return f"Author {self.name} tg={self.telegram} trello={self.trello} focalboard={self.focalboard}"
return f"Author {self.name} tg={self.telegram} trello={self.trello} f={self.focalboard}"

@classmethod
def from_dict(cls, data):
Expand Down

0 comments on commit ce42f61

Please sign in to comment.