Fix displaying finish button
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lukáš Kucharczyk 2023-01-09 22:05:12 +01:00
parent 025ea0dd4e
commit 49723831e9
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ RUN npm install && \
FROM python:3.10.9-alpine
ENV VERSION_NUMBER 0.1.2-10-g97467c7
ENV VERSION_NUMBER 0.1.2-11-g025ea0d
ENV PROD 1
RUN apk add \

View File

@ -56,7 +56,7 @@ def list_sessions(request, purchase_id=None):
dataset = Session.objects.all().order_by("timestamp_start")
for session in dataset:
if session.timestamp_end == None and session.duration_manual == None:
if session.timestamp_end == None and session.duration_manual.seconds == 0:
session.timestamp_end = datetime.now(ZoneInfo(settings.TIME_ZONE))
session.unfinished = True