spreadsheetupdater.py updated json to moduel_dump_json

This commit is contained in:
appleb_m committed 2026-04-28 14:11:44 +02:00
1 parent 8f9022862b
commit 9df27b3a13
1 file changed
+2 -2
+2 -2
View File
@@ -80,14 +80,14 @@ def on_message(ws, message):
# Write normal pucks to sample_spreadsheet
normal_key = f"{config._BeamlineConfig__bl}:sample_spreadsheet"
normal_list = SampleShortInfoList(s=normal_short_infos)
config._BeamlineConfig__client.set(normal_key, normal_list.json())
config._BeamlineConfig__client.set(normal_key, normal_list.model_dump_json())
print("[REDIS][INFO] Written normal spreadsheet to:", normal_key)
# Write reference tools to reference-tools
ref_key = f"{config._BeamlineConfig__bl}:reference-tools"
if reference_short_infos:
ref_list = SampleShortInfoList(s=reference_short_infos)
config._BeamlineConfig__client.set(ref_key, ref_list.json())
config._BeamlineConfig__client.set(ref_key, ref_list.model_dump_json())
print("[REDIS][INFO] Written reference tools to:", ref_key)
else:
# Clear key if empty