aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordennis <d@ennis.no>2023-02-05 20:26:48 +0100
committerdennis <d@ennis.no>2023-02-05 20:26:48 +0100
commit8c2074b76e229f0fb4fd90a0834b376771e1cb94 (patch)
tree687593e8ace7c114f7a63179c7dfae2bb153c387
parentremove starting space (diff)
downloadenergyscripts-8c2074b76e229f0fb4fd90a0834b376771e1cb94.tar.gz
remove extra whitespace
-rw-r--r--scripts/queue_runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/queue_runner.py b/scripts/queue_runner.py
index 62467b5..fad223d 100644
--- a/scripts/queue_runner.py
+++ b/scripts/queue_runner.py
@@ -63,7 +63,7 @@ while True:
for msgid in msgids:
q.done(msgid)
- table = sql.split(' ')[2]
+ table = sql.split(' ')[2].strip()
num = 1 if isinstance(values, tuple) else len(values)
left = str(q.qsize()) + " items left in queue" if q.qsize() > 0 else ''
print("Processed", num, "item(s) for table", table + ".", left)