Skip to content

Commit dbf0ce6

Browse files
author
Pritom Gogoi
committed
add bug fixes - silly
1 parent 7de6da2 commit dbf0ce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ def __init__(self, username):
5151
found_user = userInfo.query.filter_by(username=pr.user.login).first()
5252
found_user.name = pr.user.name
5353
found_user.user_link = pr.user.html_url
54-
if pr.state=='closed':
54+
if pr.merged==True:
5555
found_user.pr_count+=1
5656
found_user.commit_count+=pr.commits
5757
found_user.line_add+=pr.additions
5858
found_user.line_delete+=pr.deletions
59-
else:
59+
if pr.state=="open":
6060
found_user.pr_open+=1
6161

6262
db.session.commit()

0 commit comments

Comments
 (0)