-
Notifications
You must be signed in to change notification settings - Fork 846
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
Add full collection for messages #2788
Conversation
Signed-off-by: Andrew Brain <[email protected]>
def retrieve_all_pr_and_issue_messages(repo_git: str, logger, key_auth, task_name) -> None: | ||
result = session.query(CollectionStatus).filter(CollectionStatus.repo_id == repo_id, CollectionStatus.issue_pr_sum <= 10).first() | ||
|
||
return result != None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
C0121: Comparison 'result != None' should be 'result is not None' (singleton-comparison)
|
||
if len(all_data) > 0: | ||
process_messages(all_data, task_name, repo_id, logger, augur_db) | ||
|
||
|
||
def process_messages(messages, task_name, repo_id, logger, augur_db): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
R0914: Too many local variables (39/30) (too-many-locals)
|
||
if len(all_data) > 0: | ||
process_messages(all_data, task_name, repo_id, logger, augur_db) | ||
|
||
|
||
def process_messages(messages, task_name, repo_id, logger, augur_db): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
R0912: Too many branches (18/12) (too-many-branches)
|
||
if len(all_data) > 0: | ||
process_messages(all_data, task_name, repo_id, logger, augur_db) | ||
|
||
|
||
def process_messages(messages, task_name, repo_id, logger, augur_db): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
R0915: Too many statements (78/50) (too-many-statements)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @ABrain7710 !
Signed commits