Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev -> master #319

Merged
merged 18 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix pep
  • Loading branch information
alexeyqu committed Apr 28, 2024
commit ce42f61c4d6900cc3debbfe2f77c87d6dab501e0
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
Loading