fix #4: more diffusion info on admin dashboard

This commit is contained in:
bkfox
2022-02-18 15:10:52 +01:00
parent 2e070ab2c3
commit cd76659ed9
3 changed files with 27 additions and 3 deletions

View File

@ -252,7 +252,7 @@ class Diffusion(BaseRerun):
return self.type == self.TYPE_ON_AIR and \
self.start <= now and self.end >= now
# TODO: property?
@property
def is_live(self):
""" True if Diffusion is live (False if there are sounds files). """
return self.type == self.TYPE_ON_AIR and \