Add empty highlight field to sponsor scanning response
authorMagnus Hagander <magnus@hagander.net>
Tue, 9 Sep 2025 09:19:22 +0000 (11:19 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 9 Sep 2025 09:19:22 +0000 (11:19 +0200)
There will never be one, but we need an empty array for the client.

postgresqleu/confsponsor/scanning.py

index e519ad09d133838caed367e6649462ad976ebf59..cc12792ff92488292e25130c26ebc78f273d8023 100644 (file)
@@ -258,6 +258,7 @@ def _json_response(reg, status, existingnote='', message=''):
             'email': reg.email,
             'note': existingnote,
             'token': reg.publictoken,
+            'highlight': [],
         },
         'message': message,
         'showfields': False,