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(())
}

View File

@@ -96,7 +96,7 @@ struct DailyWeather {
}
fn fetch(api_key: &str) -> Result<Data, String> {
let url = format!("https://api.openweathermap.org/data/3.0/onecall?lat=48.31970&lon=14.29451&units=metric&exclude=current,minutely,hourly,alert&appid={api_key}");
let url = format!("https://api.openweathermap.org/data/3.0/onecall?lat=47.766249&lon=13.367683&units=metric&exclude=current,minutely,hourly,alert&appid={api_key}");
match ureq::get(&url).call() {
Ok(response) => {