mirror of
https://github.com/Djeeberjr/fw-anwesenheit.git
synced 2026-04-30 18:49:09 +00:00
new file will be created when sd card is empty
This commit is contained in:
@@ -41,10 +41,10 @@ pub struct IDStore<T: Persistence> {
|
||||
|
||||
impl<T: Persistence> IDStore<T> {
|
||||
pub async fn new_from_storage(mut persistence_layer: T) -> Self {
|
||||
let mapping = match persistence_layer.load_mapping().await {
|
||||
Some(map) => map,
|
||||
None => IDMapping::new(),
|
||||
};
|
||||
// let mapping = match persistence_layer.load_mapping().await {
|
||||
// Some(map) => map,
|
||||
// None => IDMapping::new(),
|
||||
// };
|
||||
|
||||
let current_date: Date = 1;
|
||||
|
||||
@@ -55,7 +55,7 @@ impl<T: Persistence> IDStore<T> {
|
||||
|
||||
Self {
|
||||
current_day: day,
|
||||
mapping,
|
||||
mapping: IDMapping::new(),
|
||||
persistence_layer,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user