From: yomguy Date: Tue, 9 Oct 2012 12:42:11 +0000 (+0200) Subject: fix station streaming X-Git-Tag: 0.9-probarreau~350 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f6f5752f5707a3c4614b931b1902ae35a0b88595;p=teleforma.git fix station streaming --- 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