Commit 21783efd authored by Robert Czechowski's avatar Robert Czechowski

Add timestamp to dbstatus

parent 3cb05059
Pipeline #431 passed with stages
in 23 minutes
......@@ -1077,6 +1077,7 @@ impl MedalConnection for Connection {
format!(
"{{
'timestamp': {},
'active_sessions': {},
'active_participations': {},
'sessions': {},
......@@ -1086,7 +1087,7 @@ impl MedalConnection for Connection {
'participations': {},
'submissions': {}
}}",
n_asession, n_apart, n_session, n_user, n_pmsuser, n_teacher, n_part, n_sub
now.sec, n_asession, n_apart, n_session, n_user, n_pmsuser, n_teacher, n_part, n_sub
)
}
......
......@@ -1173,6 +1173,7 @@ impl MedalConnection for Connection {
format!(
"{{
'timestamp': {},
'active_sessions': {},
'active_participations': {},
'sessions': {},
......@@ -1182,7 +1183,7 @@ impl MedalConnection for Connection {
'participations': {},
'submissions': {}
}}",
n_asession, n_apart, n_session, n_user, n_pmsuser, n_teacher, n_part, n_sub
now.sec, n_asession, n_apart, n_session, n_user, n_pmsuser, n_teacher, n_part, n_sub
)
}
......
......@@ -1173,6 +1173,7 @@ impl MedalConnection for Connection {
format!(
"{{
'timestamp': {},
'active_sessions': {},
'active_participations': {},
'sessions': {},
......@@ -1182,7 +1183,7 @@ impl MedalConnection for Connection {
'participations': {},
'submissions': {}
}}",
n_asession, n_apart, n_session, n_user, n_pmsuser, n_teacher, n_part, n_sub
now.sec, n_asession, n_apart, n_session, n_user, n_pmsuser, n_teacher, n_part, n_sub
)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment