diff --git a/src/coredb/blockmetadb/expiredblocks.py b/src/coredb/blockmetadb/expiredblocks.py index da4deaf6..efaa75a4 100644 --- a/src/coredb/blockmetadb/expiredblocks.py +++ b/src/coredb/blockmetadb/expiredblocks.py @@ -23,18 +23,19 @@ from etc import onionrvalues def get_expired_blocks(): - """Return a list of expired blocks""" + """Return a list of expired blocks.""" conn = sqlite3.connect( dbfiles.block_meta_db, timeout=onionrvalues.DATABASE_LOCK_TIMEOUT) c = conn.cursor() date = int(epoch.get_epoch()) compiled = (date,) - execute = 'SELECT hash FROM hashes WHERE expire <= ? ORDER BY dateReceived;' + execute = 'SELECT hash FROM hashes WHERE ' + \ + 'expire <= ? ORDER BY dateReceived;' rows = list() for row in c.execute(execute, compiled): for i in row: rows.append(i) conn.close() - return rows \ No newline at end of file + return rows