Fix roster_url format in sync_adherents_mailman.py
This commit is contained in:
parent
9256f4afa8
commit
45c2d8f00e
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ if changed:
|
||||||
for section in config.sections():
|
for section in config.sections():
|
||||||
if section not in ["Re2o", "Mailman"] and config.getboolean(section, 'activate'):
|
if section not in ["Re2o", "Mailman"] and config.getboolean(section, 'activate'):
|
||||||
list_name = config.get(section, "list_name", fallback=section)
|
list_name = config.get(section, "list_name", fallback=section)
|
||||||
response1 = requests.get(roster_url.format(mailman_url=mailman_url, list_namelist_name, domain=domain), auth=(mailman_username, mailman_password))
|
response1 = requests.get(roster_url.format(mailman_url=mailman_url, list_name=list_name, domain=domain), auth=(mailman_username, mailman_password))
|
||||||
if "entries" in response1.json():
|
if "entries" in response1.json():
|
||||||
entries = response1.json()['entries']
|
entries = response1.json()['entries']
|
||||||
old_emails = [entry['email'] for entry in entries]
|
old_emails = [entry['email'] for entry in entries]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue