Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scripts
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
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
CSCE 361
scripts
Commits
fb41f6e9
Commit
fb41f6e9
authored
5 years ago
by
Christopher Bohn
Browse files
Options
Downloads
Patches
Plain Diff
bugfixes
parent
8ccbd9e9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
grade_team_contribution.py
+4
-4
4 additions, 4 deletions
grade_team_contribution.py
with
4 additions
and
4 deletions
grade_team_contribution.py
+
4
−
4
View file @
fb41f6e9
...
...
@@ -131,7 +131,7 @@ if __name__ == '__main__':
print
(
'
First, select the
"
peer review
"
assignment to review and grade (select 0 if not grading peer reviews).
\n
'
)
assignment_groups
=
course
.
get_assignment_groups
()
assignment_group
=
select_from_list
(
assignment_groups
,
'
assignment group
'
,
True
)
grading_peer_reviews
=
assignment_group
!=
0
grading_peer_reviews
=
assignment_group
is
not
None
print
()
peer_review_assignment
=
None
if
grading_peer_reviews
:
...
...
@@ -142,13 +142,13 @@ if __name__ == '__main__':
print
(
'
Are you grading git histories?
'
)
options
=
[
'
Yes
'
,
'
No
'
]
option
=
select_from_list
(
options
,
'
option
'
)
grading_git_histories
=
option
==
1
grading_git_histories
=
option
==
options
[
0
]
print
()
print
(
'
Now select the student groupset with the teams.
\n
'
)
student_groupsets
=
course
.
get_user_groupsets
()
student_groupset
=
select_from_list
(
student_groupsets
,
'
groupset
'
)
print
(
f
'
\n
Selected
{
student_groupset
}
.
\n
'
)
student_groups
=
student_groupset
.
get_groups
()
student_groups
=
student_groupset
.
get_groups
()
# TODO: only need this if grading git histories
project_prefix
=
get_project_prefix
(
student_groups
)
no_common_prefix
:
bool
=
True
if
project_prefix
==
'
*
'
else
False
print
(
'
Are you grading all groups, or are you revisiting a specific group?
'
)
...
...
@@ -158,7 +158,7 @@ if __name__ == '__main__':
print
(
'
Which group?
'
)
student_groups
=
[
select_from_list
(
student_groups
,
'
student group
'
)]
zero_padding
:
int
=
ceil
(
log10
(
len
(
projects
)))
assignment_start_date
=
get_assignment_start
()
assignment_start_date
=
get_assignment_start
()
# TODO: only need this if grading git histories
for
student_group
in
student_groups
:
# TODO: Skip past graded groups
input
(
f
'
\n\n
Press Enter to grade
{
student_group
}
'
)
print
()
...
...
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