summaryrefslogtreecommitdiffstats
path: root/tools/scripts/firehose.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/scripts/firehose.py')
-rwxr-xr-xtools/scripts/firehose.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/scripts/firehose.py b/tools/scripts/firehose.py
index 761d69c88d..3d3a458b77 100755
--- a/tools/scripts/firehose.py
+++ b/tools/scripts/firehose.py
@@ -33,7 +33,6 @@ import subprocess
import sys
from io import StringIO
from time import time
-from random import randint
from uuid import uuid4
import psycopg2
@@ -200,7 +199,9 @@ def generate_events(events, job):
cursor.execute("SELECT indexname, indexdef FROM pg_indexes WHERE tablename='main_jobevent' AND indexname != 'main_jobevent_pkey';")
indexes = cursor.fetchall()
- cursor.execute("SELECT conname, contype, pg_catalog.pg_get_constraintdef(r.oid, true) as condef FROM pg_catalog.pg_constraint r WHERE r.conrelid = 'main_jobevent'::regclass AND conname != 'main_jobevent_pkey';")
+ cursor.execute(
+ "SELECT conname, contype, pg_catalog.pg_get_constraintdef(r.oid, true) as condef FROM pg_catalog.pg_constraint r WHERE r.conrelid = 'main_jobevent'::regclass AND conname != 'main_jobevent_pkey';" # noqa
+ )
constraints = cursor.fetchall()
# drop all indexes for speed