Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
663ded07
Commit
663ded07
authored
1 year ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-2893
: comment
parent
9f58a38f
No related branches found
No related tags found
1 merge request
!1289
Resolve TMSS-2893
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/src/tmss/tmssapp/views.py
+1
-1
1 addition, 1 deletion
SAS/TMSS/backend/src/tmss/tmssapp/views.py
with
1 addition
and
1 deletion
SAS/TMSS/backend/src/tmss/tmssapp/views.py
+
1
−
1
View file @
663ded07
...
@@ -755,7 +755,7 @@ def failure_report(request):
...
@@ -755,7 +755,7 @@ def failure_report(request):
@swagger_auto_schema
(
responses
=
{
200
:
'
A json list of the current public schedule.
'
},
@swagger_auto_schema
(
responses
=
{
200
:
'
A json list of the current public schedule.
'
},
operation_description
=
"
Get a json list of the current public schedule.
"
)
operation_description
=
"
Get a json list of the current public schedule.
"
)
def
public_schedule
(
request
):
def
public_schedule
(
request
):
'''
return the current and future running and scheduled units in
either
html table
or json depending on the request accept header
'''
'''
return the current and future
(2 weeks)
running and scheduled units in
a simple
html table
'''
# get all current and future running and scheduled units
# get all current and future running and scheduled units
scheduled_or_running_units
=
models
.
SchedulingUnitBlueprint
.
objects
.
prefetch_related
(
'
task_blueprints__specifications_template__type
'
)
\
scheduled_or_running_units
=
models
.
SchedulingUnitBlueprint
.
objects
.
prefetch_related
(
'
task_blueprints__specifications_template__type
'
)
\
.
select_related
(
models
.
SchedulingUnitBlueprint
.
path_to_project
,
'
status
'
,
'
specifications_template
'
,
'
specifications_template
'
)
\
.
select_related
(
models
.
SchedulingUnitBlueprint
.
path_to_project
,
'
status
'
,
'
specifications_template
'
,
'
specifications_template
'
)
\
...
...
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