Unverified Commit 78944725 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Migratelists hotfix

parent 96acee11
......@@ -14,16 +14,16 @@ class Command(BaseCommand):
def handle(self, *args, **options):
if not settings.MIGRATION_KEY:
raise ImproperlyConfigured("MIGRATION_KEY not specified")
url = "https://thalia.nu/api/export_mail.php?apikey={}&lists".format(
url = ("https://oud.thalia.nu/api/export_mail.php"
lines = requests.get(url).text.split('\n')
for lID in lines:
if ':' in lID:
raise Exception("Turns out we actually used aliasses.")
if lID.isnumeric():
url = ("https://thalia.nu/api/export_mail.php"
url = ("https://oud.thalia.nu/api/export_mail.php"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment