From 4f6c3da687b86fc5ba070d46ceab72d91d4fba43 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Mon, 20 Jan 2025 00:25:25 +0100 Subject: [PATCH] =?UTF-8?q?=C3=9Cberfl=C3=BCssige=20WHERE=20Statements=20e?= =?UTF-8?q?ntfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index 31a7289..c1d0dd0 100644 --- a/main.go +++ b/main.go @@ -226,10 +226,8 @@ func savePosition(db *sql.DB, dep Departure, apiBaseURL string) { return } - today := whenTime.Format("2006-01-02") - var existingID string - err = db.QueryRow("SELECT id FROM trips WHERE fahrt_nr = ?", dep.Line.FahrtNr, today).Scan(&existingID) + err = db.QueryRow("SELECT id FROM trips WHERE fahrt_nr = ?", dep.Line.FahrtNr).Scan(&existingID) if err == sql.ErrNoRows { id := uuid.New().String()