Skip to content

Commit

Permalink
feat: more sorting of directory lists
Browse files Browse the repository at this point in the history
  • Loading branch information
gosuto-inzasheru committed Dec 6, 2023
1 parent ea6d331 commit 02999a4
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 02999a4

Please sign in to comment.