omnata-plugin-runtime 0.3.15__py3-none-any.whl → 0.3.15a54__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- omnata_plugin_runtime/omnata_plugin.py +9 -6
- {omnata_plugin_runtime-0.3.15.dist-info → omnata_plugin_runtime-0.3.15a54.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.3.15.dist-info → omnata_plugin_runtime-0.3.15a54.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.3.15.dist-info → omnata_plugin_runtime-0.3.15a54.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.3.15.dist-info → omnata_plugin_runtime-0.3.15a54.dist-info}/WHEEL +0 -0
@@ -899,9 +899,16 @@ class InboundSyncRequest(SyncRequest):
|
|
899
899
|
results:List[pandas.DataFrame] = []
|
900
900
|
stream_names:List[str] = []
|
901
901
|
for stream_name, stream_results in self._apply_results.items():
|
902
|
-
|
902
|
+
non_empty_dfs = [
|
903
903
|
x for x in stream_results if x is not None and len(x) > 0
|
904
|
-
]
|
904
|
+
]
|
905
|
+
# get the total length of all the dataframes
|
906
|
+
total_length = sum([len(x) for x in non_empty_dfs])
|
907
|
+
# add the count of this batch to the total for this stream
|
908
|
+
self._stream_record_counts[
|
909
|
+
stream_name
|
910
|
+
] = self._stream_record_counts[stream_name] + total_length
|
911
|
+
results.extend(non_empty_dfs) # remove any None/empty dataframes
|
905
912
|
stream_names.append(stream_name)
|
906
913
|
if len(results) > 0:
|
907
914
|
logger.info(
|
@@ -911,10 +918,6 @@ class InboundSyncRequest(SyncRequest):
|
|
911
918
|
all_dfs = pandas.concat(results)
|
912
919
|
#logger.info(f"applying: {all_dfs}")
|
913
920
|
self._apply_results_dataframe(stream_names, all_dfs)
|
914
|
-
# add the count of this batch to the total for this stream
|
915
|
-
self._stream_record_counts[
|
916
|
-
stream_name
|
917
|
-
] = self._stream_record_counts[stream_name] + len(all_dfs)
|
918
921
|
# update the stream state object too
|
919
922
|
self._apply_latest_states()
|
920
923
|
self._apply_results[stream_name] = None
|
@@ -3,10 +3,10 @@ omnata_plugin_runtime/api.py,sha256=_N5ok5LN7GDO4J9n3yduXp3tpjmhpySY__U2baiygrs,
|
|
3
3
|
omnata_plugin_runtime/configuration.py,sha256=at29ExowF_T4_2U9gY0BF4IVdwC-vDytmNRHL7UCWh8,34742
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=30CJB24TqfLYNnkplZdUbeqA-P9rUIBujVKXw_S-wKY,18371
|
5
5
|
omnata_plugin_runtime/logging.py,sha256=bn7eKoNWvtuyTk7RTwBS9UARMtqkiICtgMtzq3KA2V0,3272
|
6
|
-
omnata_plugin_runtime/omnata_plugin.py,sha256=
|
6
|
+
omnata_plugin_runtime/omnata_plugin.py,sha256=tQVKx8bNUsPLqROwU4gTp1mZcl_Rk8LPKIcLTYepDNY,99092
|
7
7
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=_XgmWsrHoSshkl5Z2T27BAGVnBh4yH-8lni5sdGlSz8,27670
|
8
8
|
omnata_plugin_runtime/rate_limiting.py,sha256=se6MftQI5NrVHaLb1hByPCgAESPQhkAgIG7KIU1clDU,16562
|
9
|
-
omnata_plugin_runtime-0.3.
|
10
|
-
omnata_plugin_runtime-0.3.
|
11
|
-
omnata_plugin_runtime-0.3.
|
12
|
-
omnata_plugin_runtime-0.3.
|
9
|
+
omnata_plugin_runtime-0.3.15a54.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
10
|
+
omnata_plugin_runtime-0.3.15a54.dist-info/METADATA,sha256=WKpvRmmwEkxvUKK5BmbDttnBS_DvMNkWqyMmyoFzNHk,1604
|
11
|
+
omnata_plugin_runtime-0.3.15a54.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
12
|
+
omnata_plugin_runtime-0.3.15a54.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.3.15.dist-info → omnata_plugin_runtime-0.3.15a54.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|