Use list name for shortdesc instead of description
authorMagnus Hagander <magnus@hagander.net>
Mon, 20 Nov 2017 19:20:04 +0000 (20:20 +0100)
committerMagnus Hagander <magnus@hagander.net>
Mon, 20 Nov 2017 19:20:04 +0000 (20:20 +0100)
This is what we used to do, so let's stay consistent.

loader/pglister_sync.py

index 60a81c2fd8fcbcfcdcca4fc1e9d1b42abaed9a6b..d3ac8012e4924545f3e907c503994e2657780ddf 100755 (executable)
@@ -40,7 +40,7 @@ if __name__=="__main__":
 
        # Add any missing lists.
        for l in obj:
-               curs.execute("INSERT INTO lists (listid, listname, shortdesc, description, active, groupid) VALUES (%(id)s, %(name)s, %(desc)s, %(desc)s, 't', %(groupid)s) ON CONFLICT (listid) DO UPDATE SET listname=excluded.listname,shortdesc=excluded.shortdesc,groupid=excluded.groupid RETURNING listid", {
+               curs.execute("INSERT INTO lists (listid, listname, shortdesc, description, active, groupid) VALUES (%(id)s, %(name)s, %(name)s, %(desc)s, 't', %(groupid)s) ON CONFLICT (listid) DO UPDATE SET listname=excluded.listname,shortdesc=excluded.shortdesc,groupid=excluded.groupid RETURNING listid", {
                        'id': l['listid'],
                        'name': l['listname'],
                        'desc': l['shortdesc'],