We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7de6da2 commit dbf0ce6Copy full SHA for dbf0ce6
database.py
@@ -51,12 +51,12 @@ def __init__(self, username):
51
found_user = userInfo.query.filter_by(username=pr.user.login).first()
52
found_user.name = pr.user.name
53
found_user.user_link = pr.user.html_url
54
- if pr.state=='closed':
+ if pr.merged==True:
55
found_user.pr_count+=1
56
found_user.commit_count+=pr.commits
57
found_user.line_add+=pr.additions
58
found_user.line_delete+=pr.deletions
59
- else:
+ if pr.state=="open":
60
found_user.pr_open+=1
61
62
db.session.commit()
0 commit comments