Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Use datetime_start if set, else datetime.now() #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion optdash/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
)
]
Expand Down