X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/73b6a1639ba8f9f5fc7615c136364fdba73e5bb2..beb5154606f790915bc56b9cb8af824537cc7d7a:/src/wolnelektury/management/commands/clean_social_accounts.py?ds=sidebyside diff --git a/src/wolnelektury/management/commands/clean_social_accounts.py b/src/wolnelektury/management/commands/clean_social_accounts.py index 263ee2c0d..ca7692ee1 100644 --- a/src/wolnelektury/management/commands/clean_social_accounts.py +++ b/src/wolnelektury/management/commands/clean_social_accounts.py @@ -14,8 +14,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()