fix bug & remove dynamic

This commit is contained in:
bkfox
2023-12-12 21:24:21 +01:00
parent 46a9008cda
commit 73d8ff32d5
11 changed files with 62 additions and 53 deletions

View File

@ -37,7 +37,8 @@ class LogListMixin(GetDateMixin):
)
def get_diffusions_queryset(self):
qs = Diffusion.objects.station(self.station).on_air().filter(start__lte=tz.now())
qs = Diffusion.objects.station(self.station).on_air().filter(start__lte=tz.now()).before()
return (
qs.date(self.date)
if self.date is not None