Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
nanoy
a08a8f8328 Merge branch 'fix_roster_url_format' into 'master'
Fix roster_url format in sync_adherents_mailman.py

See merge request re2o/mailing!3
2020-11-21 00:07:36 +01:00
jr-garnier
45c2d8f00e Fix roster_url format in sync_adherents_mailman.py 2020-11-20 22:24:32 +01:00
jr-garnier
9256f4afa8 Merge branch 'nouvelle_api' into 'master'
New api and sync to mailman script

See merge request re2o/mailing!1
2020-02-20 19:53:12 +01:00

View file

@ -20,7 +20,7 @@ if changed:
for section in config.sections():
if section not in ["Re2o", "Mailman"] and config.getboolean(section, 'activate'):
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():
entries = response1.json()['entries']
old_emails = [entry['email'] for entry in entries]