changed noting
This commit is contained in:
@@ -90,7 +90,7 @@ async fn save_chunk(events: &[EconomicEvent], dir: &std::path::Path) -> anyhow::
|
|||||||
|
|
||||||
pub async fn save_changes(changes: &[EventChange]) -> anyhow::Result<()> {
|
pub async fn save_changes(changes: &[EventChange]) -> anyhow::Result<()> {
|
||||||
if changes.is_empty() { return Ok(()); }
|
if changes.is_empty() { return Ok(()); }
|
||||||
let dir = std::path::Path::new("economic_event_changes");
|
let dir = std::path::Path::new("data/economic/events/changes");
|
||||||
fs::create_dir_all(dir).await?;
|
fs::create_dir_all(dir).await?;
|
||||||
|
|
||||||
let mut by_month: HashMap<String, Vec<EventChange>> = HashMap::new();
|
let mut by_month: HashMap<String, Vec<EventChange>> = HashMap::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user