fixing generation
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-01-05 13:50:20 +01:00
parent c188cac90b
commit 2004409321
3 changed files with 7 additions and 7 deletions

View File

@@ -36,11 +36,9 @@ class NewMedicineState(rx.State):
statement = select(Scan).order_by(Scan.timestamp.desc()).limit(1)
results = session.exec(statement)
self.last_scan = results.first()
print(self.last_scan)
if self.last_scan is None:
return
if self.last_scan.timestamp > self.lastupdatetime:
print("Update last scan uuid")
self.last_scan_uuid = self.last_scan.uuid
if not self.show_med_add_form:
self.update_medicine(self.last_scan.uuid)