From f6f5752f5707a3c4614b931b1902ae35a0b88595 Mon Sep 17 00:00:00 2001 From: yomguy Date: Tue, 9 Oct 2012 14:42:11 +0200 Subject: [PATCH] fix station streaming --- .../management/commands/teleforma-import-conferences.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/teleforma/management/commands/teleforma-import-conferences.py b/teleforma/management/commands/teleforma-import-conferences.py index 30233d1d..3a055b25 100644 --- a/teleforma/management/commands/teleforma-import-conferences.py +++ b/teleforma/management/commands/teleforma-import-conferences.py @@ -84,11 +84,9 @@ class Command(BaseCommand): streaming = False try: - stations = conference.station.filter(started=True) - ids = [station.public_id for station in stations] - for id in ids: - if id == public_id: - streaming = True + stations = conference.station.filter(started=True, public_id=public_id) + if stations: + streaming = True except: pass -- 2.39.5