Commit Graph

7 Commits

Author SHA1 Message Date
Scott Idem
2659047d24 fix: sql_update record_id missing on Vision ID models — update path now works
All create_update_*_v4 functions for event_badge, event_person,
event_person_profile, event_presenter, and event_presentation were
calling sql_update without record_id. Vision ID models use Optional[str]
IDs with a root_validator that strips integer values, so the serialized
dict contained no id key and sql_update could not identify the row.

Fix: pass record_id=<integer_id> explicitly to sql_update in all five
functions. Also fix walrus-operator false-negative: None return from
sql_update (0 rows affected — record unchanged) is not an error and
should not abort sub-object cascade; use explicit `is False` check.

Also broadens Axonius badge_type_code mapping to substring match so
future ticket name variants still resolve correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 16:50:04 -04:00
Scott Idem
70523d5bbf Work on ISHLT Impexium importing 2022-04-15 18:50:32 -04:00
Scott Idem
f15179fb02 Work on Impexium import speed 2022-04-11 21:01:29 -04:00
Scott Idem
0fa04710ff Work on import from Impexium for ISHLT with mutliple events. 2022-03-21 14:25:20 -04:00
Scott Idem
18d8b73eb3 Work on Impexium, exhibit, and badge related 2022-02-23 18:34:21 -05:00
Scott Idem
d0d8392817 Work on person methods and related 2021-09-08 12:22:22 -04:00
Scott Idem
84aecddc7c Work on session proposals and related event person profile. 2021-09-07 18:49:21 -04:00