summaryrefslogtreecommitdiff
path: root/src/mailman/database/postgresql.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-04-01 16:40:39 -0400
committerBarry Warsaw2016-04-01 16:40:39 -0400
commitb87447ffe4a20793e22884a99a7f9afe3a803004 (patch)
tree332b20714199bc83a9b2d592682e287866ed9a1d /src/mailman/database/postgresql.py
parentf7e9e4698bdd4cee39c9eb485296cbbfa32369a9 (diff)
downloadmailman-b87447ffe4a20793e22884a99a7f9afe3a803004.tar.gz
mailman-b87447ffe4a20793e22884a99a7f9afe3a803004.tar.zst
mailman-b87447ffe4a20793e22884a99a7f9afe3a803004.zip
Diffstat (limited to 'src/mailman/database/postgresql.py')
-rw-r--r--src/mailman/database/postgresql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/database/postgresql.py b/src/mailman/database/postgresql.py
index a09ee3038..5d42c59f8 100644
--- a/src/mailman/database/postgresql.py
+++ b/src/mailman/database/postgresql.py
@@ -41,8 +41,8 @@ class PostgreSQLDatabase(SABaseDatabase):
for table in tables:
for column in table.primary_key:
if (column.autoincrement
- and isinstance(column.type, Integer) # flake8: noqa
- and not column.foreign_keys): # flake8: noqa
+ and isinstance(column.type, Integer) # noqa
+ and not column.foreign_keys): # noqa
store.execute("""\
SELECT setval('"{0}_{1}_seq"', coalesce(max("{1}"), 1),
max("{1}") IS NOT null)