Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
8404cbfc
Commit
8404cbfc
authored
Jan 12, 2021
by
Robert Czechowski
Browse files
Do not show incomplete accounts in teacher group overview
parent
642cfb38
Changes
1
Show whitespace changes
Inline
Side-by-side
src/core.rs
View file @
8404cbfc
...
...
@@ -842,11 +842,11 @@ pub fn show_group<T: MedalConnection>(conn: &T, group_id: i32, session_token: &s
let
v
:
Vec
<
MemberInfo
>
=
group
.members
.iter
()
.map
(|
m
|
MemberInfo
{
id
:
m
.id
,
firstname
:
m
.firstname
.clone
()
.unwrap_or_else
(||
""
.to_string
())
,
lastname
:
m
.lastname
.clone
()
.unwrap_or_else
(||
""
.to_string
())
,
.
filter_
map
(|
m
|
Some
(
MemberInfo
{
id
:
m
.id
,
firstname
:
m
.firstname
.clone
()
?
,
lastname
:
m
.lastname
.clone
()
?
,
grade
:
grade_to_string
(
m
.grade
),
logincode
:
m
.logincode
.clone
()
.unwrap_or_else
(||
""
.to_string
())
})
logincode
:
m
.logincode
.clone
()
?
})
)
.collect
();
data
.insert
(
"group"
.to_string
(),
to_json
(
&
gi
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment