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
e13a9c1d
Commit
e13a9c1d
authored
Mar 23, 2021
by
Robert Czechowski
Browse files
Clippy
parent
2b55a0e4
Pipeline
#1179
failed with stages
in 3 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/core.rs
View file @
e13a9c1d
...
...
@@ -1326,7 +1326,7 @@ pub fn admin_show_user<T: MedalConnection>(conn: &T, user_id: i32, session_token
data
.insert
(
"logincode"
.to_string
(),
to_json
(
&
user
.logincode
));
data
.insert
(
"userid"
.to_string
(),
to_json
(
&
user
.id
));
let
grade
=
if
user
.grade
>=
200
{
format!
(
"Kein Schüler mehr"
)
"Kein Schüler mehr"
.to_string
(
)
}
else
if
user
.grade
>=
11
{
format!
(
"{} ({})"
,
user
.grade
%
100
,
if
user
.grade
>=
100
{
"G9"
}
else
{
"G8"
})
}
else
{
...
...
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