Mailing lists: use unmodified name for desc lookup

This commit is contained in:
Drew DeVault 2020-04-29 13:36:23 -04:00
parent 43b3a612e6
commit d53f622d54

View file

@ -91,13 +91,14 @@ Mailing list for end-user discussion and questions related to the
template = templates[template]
for list_name in template:
desc = descs[list_name]
list_name = list_name.lower() # Per lists.sr.ht naming rules
try:
mailing_list = lists.get_list(owner, list_name)
except:
valid = Validation({
"name": list_name,
"description": descs[list_name],
"description": desc,
})
mailing_list = lists.create_list(owner, valid)
if not mailing_list: