From: Guillaume Pellerin Date: Sat, 8 Aug 2026 09:34:05 +0000 (+0200) Subject: do not process period X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8d8603304afa5f271a7d7b75fa6a9133c438aa56;p=teleforma.git do not process period --- diff --git a/teleforma/management/commands/teleforma-publish-notify-conferences.py b/teleforma/management/commands/teleforma-publish-notify-conferences.py index 807b42bb..eb75c538 100644 --- a/teleforma/management/commands/teleforma-publish-notify-conferences.py +++ b/teleforma/management/commands/teleforma-publish-notify-conferences.py @@ -46,9 +46,6 @@ class Command(BaseCommand): parser.add_argument('--logfile', type=str, required=False, help='log file to use') - parser.add_argument('--period', type=str, required=True, - help='period to process') - parser.add_argument('--minute-low-range', type=int, required=False, help='minute low range') @@ -59,10 +56,6 @@ class Command(BaseCommand): logpath = options['logfile'] logger = Logger(logpath) - - period_name = options['period'] - period = Period.objects.get(name=period_name) - minute_low_range = options['minute_low_range'] if not minute_low_range: minute_low_range = MINUTES_LOW_RANGE @@ -76,7 +69,6 @@ class Command(BaseCommand): now_plus = now + datetime.timedelta(minutes=minute_high_range) publications = ConferencePublication.objects.filter( - period=period, status=2, notified=False, date_publish__lte=now_plus, @@ -139,12 +131,3 @@ class Command(BaseCommand): publication.notified = True publication.save() - # streaming published end conference should have a streaming propery set to False - for conference in Conference.objects.filter( - period=period, - status=3, - streaming=True, - date_end__lt=now): - conference.streaming = False - conference.save() -