From 6e93f0e3d5ae297a3ce61e238708b7235acf9084 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9lestin=20Matte?= <gitlab@cmatte.me>
Date: Mon, 1 Nov 2021 20:43:51 +0100
Subject: [PATCH] pglister_sync: import lists with subscriber_access set to
 True

Otherwise, there is no in-app way to set it
---
 loader/pglister_sync.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/loader/pglister_sync.py b/loader/pglister_sync.py
index f95d369..dd5bec4 100755
--- a/loader/pglister_sync.py
+++ b/loader/pglister_sync.py
@@ -60,7 +60,7 @@ if __name__ == "__main__":
             'name': l['listname'],
         })
         if curs.rowcount == 0:
-            curs.execute("INSERT INTO lists (listname, shortdesc, description, active, groupid) SELECT %(name)s, %(name)s, %(desc)s, 't', groupid FROM listgroups WHERE groupname=%(groupname)s RETURNING listid, listname", {
+            curs.execute("INSERT INTO lists (listname, shortdesc, description, active, groupid, subscriber_access) SELECT %(name)s, %(name)s, %(desc)s, 't', groupid, 't' FROM listgroups WHERE groupname=%(groupname)s RETURNING listid, listname", {
                 'name': l['listname'],
                 'desc': l['longdesc'],
                 'groupname': l['group']['groupname'],
-- 
2.34.1

