improve for wolfgangsee deployment
All checks were successful
CI/CD Pipeline / test (push) Successful in 8m57s
CI/CD Pipeline / deploy-main (push) Successful in 6m26s

This commit is contained in:
2025-04-02 16:21:43 +02:00
parent 84ec6eaeb5
commit bec8efb469
4 changed files with 4 additions and 19 deletions

View File

@@ -5,7 +5,7 @@ use sqlx::SqlitePool;
use crate::model::waterlevel::{self, Waterlevel};
pub async fn update(db: &SqlitePool) -> Result<(), String> {
let mut tx = db.begin().await.unwrap();
/*let mut tx = db.begin().await.unwrap();
// 1. Delete water levels starting from yesterday
Waterlevel::delete_all(&mut tx).await;
@@ -44,7 +44,7 @@ pub async fn update(db: &SqlitePool) -> Result<(), String> {
}
// 3. Save in DB
tx.commit().await.unwrap();
tx.commit().await.unwrap();*/
Ok(())
}