server: add support for dataset by timestamp

This commit is contained in:
nym21
2024-12-27 12:28:27 +01:00
parent 2b017ac6b5
commit 481f5c0a97
19 changed files with 286 additions and 121 deletions
+3 -2
View File
@@ -77,6 +77,7 @@ pub struct Config {
impl Config {
pub const DATASET_DIR_NAME: &str = "datasets";
pub const DATABASES_DIR_NAME: &str = "databases";
pub fn import() -> color_eyre::Result<Self> {
let path = Self::path_dot_kibo();
@@ -285,7 +286,7 @@ impl Config {
}
pub fn path_datasets(&self) -> MapPath {
MapPath::from(self.path_kibodir().join("datasets"))
MapPath::from(self.path_kibodir().join(Self::DATASET_DIR_NAME))
}
pub fn path_datasets_last_values(&self) -> MapPath {
@@ -297,7 +298,7 @@ impl Config {
}
pub fn path_databases(&self) -> PathBuf {
self.path_kibodir().join(Self::DATASET_DIR_NAME)
self.path_kibodir().join(Self::DATABASES_DIR_NAME)
}
pub fn path_states(&self) -> PathBuf {