Skip to content
Snippets Groups Projects
Commit 9f0ecc0e authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

MAINT: Remove geomar specific time properties

parent fe4d2ca4
Branches
Tags
1 merge request!1F awi sams
......@@ -97,10 +97,6 @@ Sample:
datatype: TEXT
Notes:
datatype: TEXT
Time sampled start:
datatype: DATETIME
Time sampled stop:
datatype: DATETIME
AphiaID:
description: An ID for this taxon that allows to uniquely identify it on http://www.marinespecies.org.
datatype: INTEGER
......@@ -171,11 +167,11 @@ Event:
obligatory_properties:
Gear:
recommended_properties:
Time start:
start_date:
description: The date and time the event started.
datatype: DATETIME
suggested_properties:
Time stop:
end_date:
description: The date and time the event ended.
datatype: DATETIME
......
......@@ -557,15 +557,9 @@ def update_sample_records(data, htmluserlog_public):
.add_parent(name="Sphere")
for el in row["Sphere"]])
if "Date collected start" in row and return_value_if_not_none(row["Date collected start"]) is not None:
sample = _update_property(entity=sample, property_id=event_property_id, property_name='SourceEvent', value=get_event(
row, get_gear(row)))
if "PDFReport" in data.columns:
sample = _update_property(
entity=sample, property_id=pdfreport_property_id, property_name="PDFReport", value=row["PDFReport"])
if "Date sampled start" in data.columns:
sample = _append_times_to_entity(ent=sample, data=row, propname_prefix="Time sampled",
colname_time_prefix="Time sampled", colname_date_prefix="Date sampled")
# Add additional properties
for property_name in additional_property_ids.keys():
......
......@@ -58,6 +58,8 @@ entity_names:
responsible_rt: Responsible
first_name_prop: first_name
last_name_prop: last_name
start_date_prop: start_date
end_date_prop: end_date
error_prefix: "Something went wrong:"
error_suffix: "Please contact your administrator(s)."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment