]> git.parisson.com Git - teleforma.git/commitdiff
fix station streaming
authoryomguy <yomguy@parisson.com>
Tue, 9 Oct 2012 12:42:11 +0000 (14:42 +0200)
committeryomguy <yomguy@parisson.com>
Tue, 9 Oct 2012 12:42:11 +0000 (14:42 +0200)
teleforma/management/commands/teleforma-import-conferences.py

index 30233d1dde0d4daf9cedf59d905df0fbb8146333..3a055b257d28b21e1513e2461d3feeabffb779b2 100644 (file)
@@ -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