Skip to content

Commit

Permalink
Merge pull request #160 from BalancerMaxis/feat/more_directory_sorting
Browse files Browse the repository at this point in the history
feat: more sorting of directory lists
  • Loading branch information
gosuto-inzasheru authored Dec 6, 2023
2 parents ea6d331 + 02999a4 commit 697700d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transform-deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ def main():
# Get deployments
active_deployments = []
old_deployments = []
ls = os.listdir(f"{basepath}/tasks")
ls = sorted(os.listdir(f"{basepath}/tasks"))
for path in ls:
if bool(re.search(r"^\d{8}", path)):
active_deployments.append(path)

ls = os.listdir(f"{basepath}/tasks/deprecated")
ls = sorted(os.listdir(f"{basepath}/tasks/deprecated"))
for path in ls:
if bool(re.search(r"^\d{8}", path)):
old_deployments.append(path)
Expand Down

0 comments on commit 697700d

Please sign in to comment.