]> git.parisson.com Git - teleforma.git/commitdiff
do not process period
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 8 Aug 2026 09:34:05 +0000 (11:34 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 8 Aug 2026 09:34:05 +0000 (11:34 +0200)
teleforma/management/commands/teleforma-publish-notify-conferences.py

index 807b42bbcc55835ff4f5accec0be95d8b53cb639..eb75c5382725f9a654d8612bfa7ccaceda4e8d83 100644 (file)
@@ -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()
-