removed unused imports economic

This commit is contained in:
2025-12-04 13:38:14 +01:00
parent ef2393ab70
commit 787a08d6f1
6 changed files with 7 additions and 18 deletions

View File

@@ -2,9 +2,8 @@
use super::types::*;
use super::helpers::*;
use tokio::fs;
use chrono::{Local, NaiveDate, Datelike};
use chrono::{NaiveDate, Datelike};
use std::collections::HashMap;
use std::path::Path;
pub async fn scan_existing_chunks() -> anyhow::Result<Vec<ChunkInfo>> {
let dir = std::path::Path::new("economic_events");
@@ -112,10 +111,4 @@ pub async fn save_changes(changes: &[EventChange]) -> anyhow::Result<()> {
fs::write(&path, serde_json::to_string_pretty(&all)?).await?;
}
Ok(())
}
pub fn target_end_date() -> String {
let now = Local::now().naive_local().date();
let future = now + chrono::Duration::days(90);
future.format("%Y-%m-%d").to_string()
}