-
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
PR Files Merge Issue Fix #2816
PR Files Merge Issue Fix #2816
Conversation
Signed-off-by: Sean P. Goggins <[email protected]>
@@ -2,26 +2,22 @@ | |||
from augur.tasks.github.util.gh_graphql_entities import GraphQlPageCollection | |||
from augur.application.db.models import * |
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 🐶
W0401: Wildcard import augur.application.db.models (wildcard-import)
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
@@ -12,31 +12,25 @@ def pull_request_files_model(repo_id,logger, augur_db, key_auth): | |||
SELECT DISTINCT pr_src_number as pr_src_number, pull_requests.pull_request_id | |||
FROM pull_requests--, pull_request_meta | |||
WHERE repo_id = :repo_id | |||
""").bindparams(repo_id=repo_id) | |||
""").bindparams(repo_id=repo.repo_id) |
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 🐶
E0601: Using variable 'repo' before assignment (used-before-assignment)
result = augur_db.execute_sql(pr_number_sql)#.fetchall() | ||
pr_numbers = [dict(row) for row in result.mappings()] | ||
|
||
|
||
query = augur_db.session.query(Repo).filter(Repo.repo_id == repo_id) | ||
repo = execute_session_query(query, 'one') |
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 🐶
E0602: Undefined variable 'execute_session_query' (undefined-variable)
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Description