Skip to content
Snippets Groups Projects
Commit 059a7b69 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

WIP: add priorities

parent d5320c4d
No related branches found
No related tags found
2 merge requests!39Release 0.4.0,!20created draft for generic analysis method
Pipeline #16457 passed
......@@ -42,7 +42,7 @@ logger = logging.getLogger(__name__)
def main(args):
# TODO can these checks be replaced by a more declaritive appoach?
# TODO (maybe) can these checks be replaced by a more declaritive appoach?
try:
dataAnalysisRecord = db.Record(id=args.entityid).retrieve()
except db.TransactionError:
......@@ -75,7 +75,7 @@ def main(args):
# ####################################################################### #
# Insert the result plot
# TODO: how do we find a good file path??
# TODO (must): how do we find a good file path??
fig = db.File(file=filename, path="/uploaded/something/"+filename)
fig.insert()
......@@ -88,18 +88,18 @@ def main(args):
"mean_value",
mean,
)
# TODO this is not really meaningful since an uploaded file will always
# TODO (maybe) this is not really meaningful since an uploaded file will always
# be different.... Compare checksums of files?
assure_property_is(
dataAnalysisRecord,
"result",
fig.id,
)
# TODO what should be done with the old file? Removed if not referenced?
# TODO (must) what should be done with the old file? Removed if not referenced?
# TODO inform about updates (reuse stuff from crawler.py?)
# TODO sketch meaningful logging
# TODO how to send an email?
# TODO (maybe) inform about updates (reuse stuff from crawler.py?)
# TODO (must) sketch meaningful logging
# TODO (must) how to send an email?
def parse_args():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment