hydroserverpy 1.3.0b3__py3-none-any.whl → 1.3.1__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.

Potentially problematic release.


This version of hydroserverpy might be problematic. Click here for more details.

@@ -216,11 +216,11 @@ class HydroServerETLCSV:
216
216
  """
217
217
 
218
218
  try:
219
- timestamp_format = (self._data_source.settings["transformer"].get("timestampFormat") or
220
- self._data_source.settings["transformer"].get("timestamp", {}).get("format"))
219
+ timestamp_format = self._data_source.settings["transformer"]["timestamp"]["format"]
221
220
  if timestamp_format == "custom":
222
221
  timestamp = datetime.strptime(
223
- row[self._timestamp_column_index], timestamp_format,
222
+ row[self._timestamp_column_index],
223
+ self._data_source.settings["transformer"]["timestamp"]["customFormat"],
224
224
  )
225
225
  else:
226
226
  timestamp = isoparse(row[self._timestamp_column_index])
@@ -228,11 +228,7 @@ class HydroServerETLCSV:
228
228
  raise TimestampParsingError(str(e)) from e
229
229
 
230
230
  if timestamp.tzinfo is None:
231
- timestamp_offset = self._data_source.settings["transformer"].get(
232
- "timestampOffset"
233
- ) or self._data_source.settings["transformer"].get(
234
- "timestamp", {}
235
- ).get("offset")
231
+ timestamp_offset = self._data_source.settings["transformer"]["timestamp"]["timezone"]
236
232
  if not timestamp_offset or timestamp_offset.endswith(
237
233
  "0000"
238
234
  ):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hydroserverpy
3
- Version: 1.3.0b3
3
+ Version: 1.3.1
4
4
  Requires-Python: <4,>=3.9
5
5
  License-File: LICENSE
6
6
  Requires-Dist: requests>=2
@@ -59,12 +59,12 @@ hydroserverpy/etl/transformers/csv_transformer.py,sha256=0kWfRKPwiGxCNZ87Q4SiBlf
59
59
  hydroserverpy/etl/transformers/json_transformer.py,sha256=R7tSyDB4Wn1snP75ctbEDMaMCdjyhPnMzN_W2VV3Mv4,1506
60
60
  hydroserverpy/etl_csv/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
61
  hydroserverpy/etl_csv/exceptions.py,sha256=0UY8YUlNepG0y6FfH36hJyR1bOhwYHSZIdUSSMTg7GA,314
62
- hydroserverpy/etl_csv/hydroserver_etl_csv.py,sha256=uco-FFOPk8oA4R4iWLEtcdKUT6EWa7r5h1_BWPjANjo,14359
62
+ hydroserverpy/etl_csv/hydroserver_etl_csv.py,sha256=zZDIpbBTUdm4-9G3gJ8F_IqsLvP5wtGvr4Xy6_5K3tQ,14181
63
63
  hydroserverpy/quality/__init__.py,sha256=GGBMkFSXciJLYrbV-NraFrj_mXWCy_GTcy9KKrKXU4c,84
64
64
  hydroserverpy/quality/service.py,sha256=U02UfLKVmFvr5ySiH0n0JYzUIabq5uprrHIiwcqBlqY,13879
65
- hydroserverpy-1.3.0b3.dist-info/licenses/LICENSE,sha256=xVqFxDw3QOEJukakL7gQCqIMTQ1dlSCTo6Oc1otNW80,1508
66
- hydroserverpy-1.3.0b3.dist-info/METADATA,sha256=LfvAvRE5JhA_W9ePceuUCiYMuWsl44b_PdlR3woCe8E,532
67
- hydroserverpy-1.3.0b3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
68
- hydroserverpy-1.3.0b3.dist-info/top_level.txt,sha256=Zf37hrncXLOYvXhgCrf5mZdeq81G9fShdE2LfYbtb7w,14
69
- hydroserverpy-1.3.0b3.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
70
- hydroserverpy-1.3.0b3.dist-info/RECORD,,
65
+ hydroserverpy-1.3.1.dist-info/licenses/LICENSE,sha256=xVqFxDw3QOEJukakL7gQCqIMTQ1dlSCTo6Oc1otNW80,1508
66
+ hydroserverpy-1.3.1.dist-info/METADATA,sha256=7p10qFkxjJqbUJglmqEF300RygoDzFsvpHFU0f9STEw,530
67
+ hydroserverpy-1.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
68
+ hydroserverpy-1.3.1.dist-info/top_level.txt,sha256=Zf37hrncXLOYvXhgCrf5mZdeq81G9fShdE2LfYbtb7w,14
69
+ hydroserverpy-1.3.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
70
+ hydroserverpy-1.3.1.dist-info/RECORD,,