omnata-plugin-runtime 0.4.10a107__tar.gz → 0.4.10a108__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.10a107
3
+ Version: 0.4.10a108
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-a107"
3
+ version = "0.4.10-a108"
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"
@@ -688,6 +688,10 @@ class OutboundSyncRequest(SyncRequest):
688
688
  results_df["APP_IDENTIFIER"] = None
689
689
  if "LOADBATCH_ID" not in results_df:
690
690
  results_df["LOADBATCH_ID"] = self._get_next_loadbatch_id()
691
+ # we dump the result data to a json string to make uploading to Snowflake less error prone, but only if it's not None
692
+ results_df["RESULT"] = results_df["RESULT"].apply(
693
+ lambda x: json.dumps(x) if x is not None else None
694
+ )
691
695
  # trim out the columns we don't need to return
692
696
  return results_df[
693
697
  results_df.columns.intersection(