mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
fix
This commit is contained in:
parent
b6d2a9b90a
commit
ea29078ac2
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ use crate::scheduler::timespan::Timespan;
|
||||||
use crate::scheduler::timespan::TimespanUnit;
|
use crate::scheduler::timespan::TimespanUnit;
|
||||||
|
|
||||||
pub fn studied_today(cards: u32, secs: f32, tr: &I18n) -> String {
|
pub fn studied_today(cards: u32, secs: f32, tr: &I18n) -> String {
|
||||||
let span = Timespan::from_secs(secs).to_unit(if secs < 60 {
|
let span = Timespan::from_secs(secs).to_unit(if secs < 60. {
|
||||||
TimespanUnit::Seconds
|
TimespanUnit::Seconds
|
||||||
} else {
|
} else {
|
||||||
TimespanUnit::Minutes
|
TimespanUnit::Minutes
|
||||||
|
|
Loading…
Reference in a new issue