mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Include next_day timestamp in revlog export
This commit is contained in:
parent
60c3bc8d37
commit
366f78715b
2 changed files with 7 additions and 2 deletions
|
@ -192,4 +192,5 @@ message RevlogEntry {
|
|||
|
||||
message RevlogEntries {
|
||||
repeated RevlogEntry entries = 1;
|
||||
}
|
||||
int64 next_day_at = 2;
|
||||
}
|
||||
|
|
|
@ -88,7 +88,11 @@ impl Collection {
|
|||
return Err(AnkiError::FsrsInsufficientData);
|
||||
}
|
||||
let entries = entries.into_iter().map(revlog_entry_to_proto).collect_vec();
|
||||
let entries = RevlogEntries { entries };
|
||||
let next_day_at = self.timing_today()?.next_day_at.0;
|
||||
let entries = RevlogEntries {
|
||||
entries,
|
||||
next_day_at,
|
||||
};
|
||||
let data = entries.encode_to_vec();
|
||||
write_file(target_path, data)?;
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue