X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/cbf4353403bf60dd0966e060a78893685080ae0b..1610eb2c8c981232e53cbc58039fd3c00736a652:/src/wolnelektury/management/commands/clean_social_accounts.py diff --git a/src/wolnelektury/management/commands/clean_social_accounts.py b/src/wolnelektury/management/commands/clean_social_accounts.py index 263ee2c0d..72c297816 100644 --- a/src/wolnelektury/management/commands/clean_social_accounts.py +++ b/src/wolnelektury/management/commands/clean_social_accounts.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -14,8 +13,8 @@ KEPT_FIELDS = { class Command(BaseCommand): def handle(self, *args, **options): - for provider, kept_fields in KEPT_FIELDS.iteritems(): + for provider, kept_fields in KEPT_FIELDS.items(): for sa in SocialAccount.objects.filter(provider=provider): - trimmed_data = {k: v for k, v in sa.extra_data.iteritems() if k in kept_fields} + trimmed_data = {k: v for k, v in sa.extra_data.items() if k in kept_fields} sa.extra_data = trimmed_data sa.save()