Skip to content

Commit 6fd74cb

Browse files
committed
attempt to resolve conflicts with migration path
1 parent 0bde63d commit 6fd74cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opensensor/collection_apis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _record_data_to_ts_collection(
111111
model_instance.pop("timestamp", None)
112112

113113
# Translate to the combined collection field names
114-
column_name = new_collections[get_collection_name(model_instance)]
114+
column_name = new_collections[model_instance.__class__.__name__]
115115

116116
for key, value in model_instance.items():
117117
if value is not None:

0 commit comments

Comments
 (0)