Commit 42d7ed86 authored by Mikaël Salson's avatar Mikaël Salson

default.py: Timestamp with deleted file

Timestamp should not be ``deleted'' as a date is expected for the timestamp.
dateDiffMinMax can also deal with a "None" string. So we change the string
output here, which is less specific, but which works correctly with what is
expected in model.js.

The name of the sample is still "deleted" which will help remember that this
file has been deleted.

Fixes #2101.
parent c653e9ba
......@@ -372,7 +372,7 @@ def get_data():
data["samples"]["run_name"].append(row.sequence_file.id)
else :
data["samples"]["info"].append("this file has been deleted from the database, info relative to this sample are no longer available")
data["samples"]["timestamp"].append("deleted")
data["samples"]["timestamp"].append("None")
data["samples"]["sequence_file_id"].append("")
data["samples"]["results_file_id"].append("")
data["samples"]["names"].append("deleted")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment