diff --git a/optdash/server.py b/optdash/server.py index 67a630f..95b4c2c 100644 --- a/optdash/server.py +++ b/optdash/server.py @@ -81,7 +81,7 @@ def get_contents(self) -> Tuple[int, Dict[str, str], Optional[bytes]]: } for study in sorted( studies, key=lambda s: ( - s.datetime_start if s.datetime_start is None else datetime.now() + s.datetime_start if s.datetime_start is not None else datetime.now() ) ) ]