From a4e05d8932512622f340077ed73d8fe876eee0fa Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Mon, 28 Nov 2022 00:18:10 +0000 Subject: [PATCH] Fix TypeError --- archivebot-fix-queue-counters | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebot-fix-queue-counters b/archivebot-fix-queue-counters index e009d99..5c6a16c 100755 --- a/archivebot-fix-queue-counters +++ b/archivebot-fix-queue-counters @@ -12,7 +12,7 @@ r = redis.StrictRedis.from_url(os.environ.get('REDIS_URL', 'redis://127.0.0.1:16 curDownloaded, curQueued = r.hmget(jobid, 'items_downloaded', 'items_queued') assert curDownloaded is not None and curQueued is not None, f'could not fetch downloaded and/or queued count for {jobid}' -print(f'Current control node values: {curDownloaded}/{curQueued} (net {curQueued - curDownloaded})') +print(f'Current control node values: {curDownloaded}/{curQueued} (net {int(curQueued) - int(curDownloaded)})') db = sqlite3.connect('wpull.db') cur = db.cursor()