From: Guillaume Pellerin Date: Tue, 30 Nov 2021 14:07:21 +0000 (+0100) Subject: add print X-Git-Tag: 2.5.0~3^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=da452f4232f4fd1f20d3c1fe709e4e0ad2e3d0df;p=teleforma.git add print --- diff --git a/teleforma/management/commands/teleforma-copy-conferences-from_txt.py b/teleforma/management/commands/teleforma-copy-conferences-from_txt.py index 31a97da5..c5bb5f1d 100644 --- a/teleforma/management/commands/teleforma-copy-conferences-from_txt.py +++ b/teleforma/management/commands/teleforma-copy-conferences-from_txt.py @@ -38,6 +38,8 @@ class Command(BaseCommand): period_to = Period.objects.get(name=self.period_to_name) for public_id in public_ids: + public_id = public_id.replace('\n', '').replace(' ', '') + print(public_id) conference = Conference.objects.get(public_id=public_id) medias = deepcopy(conference.media.all()) conference.pk = None