mirror of
https://github.com/Djeeberjr/fw-anwesenheit.git
synced 2025-10-13 15:06:39 +00:00
re-enabled mapping loading
This commit is contained in:
parent
75130e2d20
commit
5c0ad18b94
@ -41,12 +41,12 @@ pub struct IDStore<T: Persistence> {
|
|||||||
|
|
||||||
impl<T: Persistence> IDStore<T> {
|
impl<T: Persistence> IDStore<T> {
|
||||||
pub async fn new_from_storage(mut persistence_layer: T) -> Self {
|
pub async fn new_from_storage(mut persistence_layer: T) -> Self {
|
||||||
// let mapping = match persistence_layer.load_mapping().await {
|
let mapping = match persistence_layer.load_mapping().await {
|
||||||
// Some(map) => map,
|
Some(map) => map,
|
||||||
// None => IDMapping::new(),
|
None => IDMapping::new(),
|
||||||
// };
|
};
|
||||||
|
|
||||||
let current_date: Day = Day::new(0);
|
let current_date: Day = Day::new(1);
|
||||||
|
|
||||||
let day = persistence_layer
|
let day = persistence_layer
|
||||||
.load_day(current_date)
|
.load_day(current_date)
|
||||||
@ -55,7 +55,7 @@ impl<T: Persistence> IDStore<T> {
|
|||||||
|
|
||||||
Self {
|
Self {
|
||||||
current_day: day,
|
current_day: day,
|
||||||
mapping: IDMapping::new(),
|
mapping,
|
||||||
persistence_layer,
|
persistence_layer,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user