From: Guillaume Pellerin Date: Tue, 15 Jun 2021 08:54:31 +0000 (+0200) Subject: fix stream export against long slugs X-Git-Tag: 0.9-tc~1^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=06d0c4e40d02f27c05eb444cde5f4df4b7a0ed6d;p=teleforma.git fix stream export against long slugs --- diff --git a/teleforma/management/commands/teleforma-export-stream-m-slugs.py b/teleforma/management/commands/teleforma-export-stream-m-slugs.py index fd3a9054..497c4f42 100644 --- a/teleforma/management/commands/teleforma-export-stream-m-slugs.py +++ b/teleforma/management/commands/teleforma-export-stream-m-slugs.py @@ -41,7 +41,7 @@ streams.monitor.limit=100 for course in courses: for type in types: slug = course.slug + '-' + type.name.lower() - slug = course.department.name.lower() + '-' + slug + slug = course.department.name.lower() + '-' + slug.replace(' ', '-') self.data += '\nstreams.' + slug + '=true\n' self.data += 'streams.' + slug + '.password=' + self.passwd + '\n' self.data += 'streams.' + slug + '.limit=1000\n'