Bugfixes: Vitals Import (German columns + decimal values) #23
|
|
@ -376,7 +376,10 @@ async def import_omron_csv(
|
|||
))
|
||||
|
||||
result = cur.fetchone()
|
||||
if result and result['inserted']:
|
||||
if result is None:
|
||||
# WHERE clause prevented update (manual entry exists)
|
||||
skipped += 1
|
||||
elif result['inserted']:
|
||||
inserted += 1
|
||||
else:
|
||||
updated += 1
|
||||
|
|
|
|||
|
|
@ -357,7 +357,10 @@ async def import_apple_health_baseline(
|
|||
))
|
||||
|
||||
result = cur.fetchone()
|
||||
if result and result['inserted']:
|
||||
if result is None:
|
||||
# WHERE clause prevented update (manual entry exists)
|
||||
skipped += 1
|
||||
elif result['inserted']:
|
||||
inserted += 1
|
||||
else:
|
||||
updated += 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user