pipeline-eds 0.2.18__py3-none-any.whl → 0.2.20__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.
@@ -63,7 +63,6 @@ class QueriesManager:
63
63
 
64
64
  if not data:
65
65
  # No stored value found — go back one hour from now, rounded down to nearest 5 minutes
66
- one_hour_ago_local = TimeManager.now().as_unix() - 3600 # now - 1 hour in unix seconds
67
66
  one_hour_ago_local = TimeManager(one_hour_ago_local).as_datetime()
68
67
  #one_hour_ago_utc = TimeManager.from_local(one_hour_ago_local, zone_name = timezone_config)
69
68
  tm = TimeManager(one_hour_ago_local).round_down_to_nearest_five()
@@ -267,8 +267,10 @@ class WorkspaceManager:
267
267
  try:
268
268
  return data['default-workspace']['workspace'] # This dictates the proper formatting of the TOML file.
269
269
  except KeyError as e:
270
- raise KeyError(f"Missing key in {cls.DEFAULT_WORKSPACE_TOML_FILE_NAME}: {e}")
271
-
270
+ recent_ws = cls.most_recent_workspace_name() or "default"
271
+ default_toml_path.write_text(f"[default-workspace]\nworkspace = '{recent_ws}'\n")
272
+ #raise KeyError(f"Missing key in {cls.DEFAULT_WORKSPACE_TOML_FILE_NAME}: {e}")
273
+ return recent_ws
272
274
  def get_default_query_file_paths_list(self):
273
275
 
274
276
  default_query_path = self.get_queries_dir()/ 'default-queries.toml'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pipeline-eds
3
- Version: 0.2.18
3
+ Version: 0.2.20
4
4
  Summary: The official API pipeline library for mulch-based projects. Key target: Emerson Ovation EDS REST API.
5
5
  License: BSD-3
6
6
  Author: George Clayton Bennett
@@ -20,9 +20,9 @@ pipeline/pastehelpers.py,sha256=pkmtULW5Zk_-ffUDDp_VsGzruIjsNB1xAIPbb9jtofE,265
20
20
  pipeline/philosophy.py,sha256=QskLEpY3uZn46oyH7rHekOXiC55JqW3raThxwxaiM5U,1919
21
21
  pipeline/plotbuffer.py,sha256=jCsFbT47TdR8Sq5tjj2JdhVELjRiebLPN7O4r2LjPeY,625
22
22
  pipeline/points_loader.py,sha256=4OCGLiatbP3D5hixVnYcFGThvBRYt_bf5DhNGdGw_9k,519
23
- pipeline/queriesmanager.py,sha256=QwPhDV39Z8mdAVDRXTF4ZPgc6JliMgLzucGaGZSlDac,5001
23
+ pipeline/queriesmanager.py,sha256=tf3I6zVOACDN4tcxu_u9XGF7bJC68ifP3_MuhrEDpDs,4900
24
24
  pipeline/time_manager.py,sha256=gSK430SyHvhgUWLRg_z2nBiyad01v7ByyKafB138IkU,8351
25
- pipeline/workspace_manager.py,sha256=zH92emFGo58VKaNO-Y2AFLTLwRtOM0fa-p6FZ405LZM,15148
25
+ pipeline/workspace_manager.py,sha256=cpBecFipE7f1_xTxiE9jmQ7U7Nnk6Ovg22lxlchnzI8,15335
26
26
  workspaces/default-workspace.toml,sha256=dI8y2l2WlEbIck6IZpbuQUP8-Bf48bBE1CKKsnVMc8w,300
27
27
  workspaces/eds_to_rjn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
28
  workspaces/eds_to_rjn/code/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -57,8 +57,8 @@ workspaces/eds_to_rjn/scripts/daemon_runner.py,sha256=gBCYrJ-FYPCTt_l5O07_YNrrGj
57
57
  workspaces/eds_to_rjn/secrets/README.md,sha256=tWf2bhopA0C08C8ImtHNZoPde9ub-sLMjX6EMe7lyJw,600
58
58
  workspaces/eds_to_rjn/secrets/secrets-example.yaml,sha256=qKGrKsKBC0ulDQRVbr1zkfNlr8WPWK4lg5GAvTqZ-T4,365
59
59
  workspaces/eds_to_termux/..txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
- pipeline_eds-0.2.18.dist-info/entry_points.txt,sha256=jmU0FQ7-2AHXhKcj4TXPn61xLbHlycHA2lkDlRZT-pg,124
61
- pipeline_eds-0.2.18.dist-info/LICENSE,sha256=LKdx0wS1t9vFZpbRhDg_iLQ6ny-XsXRwhKAoCfrF6iA,1501
62
- pipeline_eds-0.2.18.dist-info/METADATA,sha256=TWSIiKi0XJVuVdeUAp1Lv3nPz8wdy_I1ncx8zKgcW_Y,10021
63
- pipeline_eds-0.2.18.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
64
- pipeline_eds-0.2.18.dist-info/RECORD,,
60
+ pipeline_eds-0.2.20.dist-info/entry_points.txt,sha256=jmU0FQ7-2AHXhKcj4TXPn61xLbHlycHA2lkDlRZT-pg,124
61
+ pipeline_eds-0.2.20.dist-info/LICENSE,sha256=LKdx0wS1t9vFZpbRhDg_iLQ6ny-XsXRwhKAoCfrF6iA,1501
62
+ pipeline_eds-0.2.20.dist-info/METADATA,sha256=NRiiBqkfBqYlpmv-q6gvxBroXnuMik6dh4lG9Sq1nAk,10021
63
+ pipeline_eds-0.2.20.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
64
+ pipeline_eds-0.2.20.dist-info/RECORD,,