mirror of
https://git.sr.ht/~sircmpwn/hub.sr.ht
synced 2024-10-07 16:58:31 +02:00
Mailing lists: use unmodified name for desc lookup
This commit is contained in:
parent
43b3a612e6
commit
d53f622d54
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue