From 5c81cd4995210c184d31fd874631ec30713200e2 Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Sat, 2 Aug 2025 19:31:52 +0200 Subject: [PATCH] don't panic if user scans codes twice --- src/model/sighting.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/model/sighting.rs b/src/model/sighting.rs index 5e7e05a..49644aa 100644 --- a/src/model/sighting.rs +++ b/src/model/sighting.rs @@ -39,8 +39,7 @@ impl Backend { ) .fetch_one(db) .await - .unwrap(), - }; - true + .is_ok(), + } } }