Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SoHPC-Selection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Beckmann
SoHPC-Selection
Commits
14ba19c7
Commit
14ba19c7
authored
Mar 31, 2020
by
Andreas Beckmann
Browse files
Options
Downloads
Patches
Plain Diff
put other projects in parentheses if the student has been assigned
parent
c74b752d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
create-evaluation-files.py
+7
-1
7 additions, 1 deletion
create-evaluation-files.py
with
7 additions
and
1 deletion
create-evaluation-files.py
+
7
−
1
View file @
14ba19c7
...
...
@@ -883,7 +883,13 @@ for cell in user_sorted.most_common():
# get all three projects and first add all user's first choise, then second and then third choice
projID
=
user_data
[
id
][
fldName
]
if
projID
:
project_list_tmp
+=
"
{0} <a href=
'
#project_{1}
'
>{2}</a>
"
.
format
(
sep
,
projID
,
projID
)
other
=
user_data
[
id
][
'
selected
'
]
and
not
user_data
[
id
][
'
selected
'
].
startswith
(
"
%d
"
%
projID
)
project_list_tmp
+=
sep
if
other
:
project_list_tmp
+=
"
(
"
project_list_tmp
+=
"
<a href=
'
#project_%(projID)s
'
>%(projID)s</a>
"
%
{
'
projID
'
:
projID
}
if
other
:
project_list_tmp
+=
"
)
"
sep
=
"
,
"
row
=
row
.
replace
(
"
{{PROJECT_ID_LIST}}
"
,
project_list_tmp
)
...
...
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
sign in
to comment