Skip to content

Commit 64a080d

Browse files
committed
Remove debug output
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent e4c8307 commit 64a080d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

compliance-monitor/sql.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ def db_upgrade_schema(conn: connection, cur: cursor):
194194
# that way just in case we want to use another database at some point
195195
while True:
196196
current = db_get_schema_version(cur)
197-
import sys; print(current, file=sys.stderr)
198-
if current >= SCHEMA_VERSIONS[-1]:
197+
if current >= SCHEMA_VERSIONS[-1]: # bail if version is too new (but hope it's compatible)
199198
break
200199
if current is None:
201200
# this is an empty db, but it also used to be the case with v1
@@ -257,7 +256,6 @@ def db_filter_accounts(cur: cursor, predicate: callable):
257256
cur.execute('SELECT accountid FROM account;')
258257
removeids = [row[0] for row in cur.fetchall() if not predicate(*row)]
259258
while removeids:
260-
import sys; print(removeids[:10], file=sys.stderr)
261259
cur.execute('DELETE FROM account WHERE accountid IN %s', (tuple(removeids[:10]), ))
262260
del removeids[:10]
263261

0 commit comments

Comments
 (0)