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')
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
now_plus = now + datetime.timedelta(minutes=minute_high_range)
publications = ConferencePublication.objects.filter(
- period=period,
status=2,
notified=False,
date_publish__lte=now_plus,
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()
-