Skip to content

Commit

Permalink
Fixed sorting issue for "restore_outputs" tmp implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinugu committed Sep 2, 2024
1 parent f89411e commit ad99258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omnipy/compute/mixins/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _generate_datetime_str(self):
def _all_job_output_file_paths_in_reverse_order_for_last_run(
persist_data_dir_path: Path, job_name: str) -> Generator[Path, None, None]:

sorted_date_dirs = iter(sorted(os.listdir(persist_data_dir_path)))
sorted_date_dirs = iter(reversed(sorted(os.listdir(persist_data_dir_path))))

try:
last_dir = next(sorted_date_dirs)
Expand Down

0 comments on commit ad99258

Please sign in to comment.