Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atdb-ldv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
atdb-ldv
Commits
97018de5
Commit
97018de5
authored
3 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
query filter fix in get_min_start_and_max_end_time
parent
76864084
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!163
SDC-470: Create api-function to retrieve the minimum start time and maximum...
,
!160
Master
,
!159
Dev nico
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
atdb/taskdatabase/services/algorithms.py
+1
-1
1 addition, 1 deletion
atdb/taskdatabase/services/algorithms.py
atdb/taskdatabase/templates/taskdatabase/index.html
+1
-1
1 addition, 1 deletion
atdb/taskdatabase/templates/taskdatabase/index.html
with
2 additions
and
2 deletions
atdb/taskdatabase/services/algorithms.py
+
1
−
1
View file @
97018de5
...
@@ -52,7 +52,7 @@ def get_min_start_and_max_end_time(sas_id):
...
@@ -52,7 +52,7 @@ def get_min_start_and_max_end_time(sas_id):
min_start_time
=
None
min_start_time
=
None
max_end_time
=
None
max_end_time
=
None
logger
.
info
(
"
get_min_start_and_max_end_time(
"
+
str
(
sas_id
)
+
"
)
"
)
logger
.
info
(
"
get_min_start_and_max_end_time(
"
+
str
(
sas_id
)
+
"
)
"
)
tasks
=
Task
.
objects
.
filter
(
sas_id
=
sas_id
).
filter
(
status
=
'
archived
'
)
+
Task
.
objects
.
filter
(
sas_id
=
sas_id
).
filter
(
status
=
'
finished
'
)
tasks
=
Task
.
objects
.
filter
(
sas_id
=
sas_id
).
filter
(
status
__in
=
'
archived
,
finished
'
)
for
task
in
tasks
:
for
task
in
tasks
:
# If more entrees are found for 'processing' task, get the latest
# If more entrees are found for 'processing' task, get the latest
start_time
=
LogEntry
.
objects
.
filter
(
task
=
task
.
pk
).
filter
(
step_name
=
'
running
'
).
filter
(
status
=
'
processing
'
).
lastest
(
'
timestamp
'
).
timestamp
start_time
=
LogEntry
.
objects
.
filter
(
task
=
task
.
pk
).
filter
(
step_name
=
'
running
'
).
filter
(
status
=
'
processing
'
).
lastest
(
'
timestamp
'
).
timestamp
...
...
This diff is collapsed.
Click to expand it.
atdb/taskdatabase/templates/taskdatabase/index.html
+
1
−
1
View file @
97018de5
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
{% include 'taskdatabase/pagination.html' %}
{% include 'taskdatabase/pagination.html' %}
</div>
</div>
</div>
</div>
<p
class=
"footer"
>
Version 1.0.0 (2
1
jan 2021 - 1
9
:00)
<p
class=
"footer"
>
Version 1.0.0 (2
4
jan 2021 - 1
0
:00)
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment