@@ -102,7 +102,10 @@ def update_treeclosed(self, value, src):
102
102
if value > 0 :
103
103
db_query (
104
104
self .db ,
105
- 'INSERT INTO repos (repo, treeclosed, treeclosed_src) VALUES (?, ?, ?)' ,
105
+ '''
106
+ INSERT INTO repos (repo, treeclosed, treeclosed_src)
107
+ VALUES (?, ?, ?)
108
+ ''' ,
106
109
[self .repo_label , value , src ]
107
110
)
108
111
@@ -395,6 +398,7 @@ def record_retry_log(self, src, body):
395
398
[self .repo_label , self .num , src , body ],
396
399
)
397
400
401
+
398
402
def sha_cmp (short , full ):
399
403
return len (short ) >= 4 and short == full [:len (short )]
400
404
@@ -1510,7 +1514,8 @@ def synchronize(repo_label, repo_cfg, logger, gh, states, repos, db, mergeable_q
1510
1514
states ,
1511
1515
sha = comment .original_commit_id ,
1512
1516
command_src = comment .to_json ()['html_url' ],
1513
- # FIXME switch to `comment.html_url` after updating github3 to 1.3.0+
1517
+ # FIXME switch to `comment.html_url`
1518
+ # after updating github3 to 1.3.0+
1514
1519
)
1515
1520
1516
1521
for comment in pull .iter_issue_comments ():
@@ -1524,7 +1529,8 @@ def synchronize(repo_label, repo_cfg, logger, gh, states, repos, db, mergeable_q
1524
1529
db ,
1525
1530
states ,
1526
1531
command_src = comment .to_json ()['html_url' ],
1527
- # FIXME switch to `comment.html_url` after updating github3 to 1.3.0+
1532
+ # FIXME switch to `comment.html_url`
1533
+ # after updating github3 to 1.3.0+
1528
1534
)
1529
1535
1530
1536
saved_state = saved_states .get (pull .number )
@@ -1662,7 +1668,8 @@ def main():
1662
1668
msg TEXT NOT NULL
1663
1669
)''' )
1664
1670
db_query (db , '''
1665
- CREATE INDEX IF NOT EXISTS retry_log_time_index ON retry_log (repo, time DESC)
1671
+ CREATE INDEX IF NOT EXISTS retry_log_time_index ON retry_log
1672
+ (repo, time DESC)
1666
1673
''' )
1667
1674
1668
1675
# manual DB migration :/
0 commit comments