omnata-plugin-runtime 0.4.10a108__tar.gz → 0.4.10a109__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.4.10a108
3
+ Version: 0.4.10a109
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.4.10-a108"
3
+ version = "0.4.10-a109"
4
4
  description = "Classes and common runtime components for building and running Omnata Plugins"
5
5
  authors = ["James Weakley <james.weakley@omnata.com>"]
6
6
  readme = "README.md"
@@ -751,6 +751,12 @@ class OutboundSyncRequest(SyncRequest):
751
751
  data_frame["TRANSFORMED_RECORD"] = data_frame[
752
752
  "TRANSFORMED_RECORD"
753
753
  ].apply(json.loads)
754
+ # we also perform json.loads on TRANSFORMED_RECORD_PREVIOUS, but only if it's not null
755
+ data_frame["TRANSFORMED_RECORD_PREVIOUS"] = data_frame[
756
+ "TRANSFORMED_RECORD_PREVIOUS"
757
+ ].apply(
758
+ lambda x: json.loads(x) if x is not None else None
759
+ )
754
760
  except TypeError as type_error:
755
761
  logger.error(
756
762
  "Error parsing transformed record output as JSON", exc_info=True