Skip to content

Commit

Permalink
forced sort order
Browse files Browse the repository at this point in the history
Signed-off-by: Soldy <[email protected]>
  • Loading branch information
Soldy committed Nov 1, 2023
1 parent 5411de7 commit 9bb58e6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/openPanthera/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ def _reader(self, target:str)->list:
target_dict = c.migration_type_dict[target]
if self._targetCheck(target_dict) == False:
return print('Directory '+target+' is missing')
for i in os.listdir(self._targetPath(target_dict)):
file_list = os.listdir(self._targetPath(target_dict))
if file_list is not list:
return {}
for i in file_list.sort():
if self._fileCheck(target_dict, i):
with open(self._targetPath(target_dict)+i) as f:
out[i]=str(f.read())
Expand Down Expand Up @@ -72,7 +75,7 @@ def fix(self)->int:
def reader(self, target:str)->list:
c.migrationTypeList[target] = self._reader(target)
return c.migrationTypeList[target]
def resolv(self, command)->any:
def resolv(self, command:str)->any:
return self.list[command]()
def __init__(self, path:str, ui_):
""" variable defination """
Expand Down

0 comments on commit 9bb58e6

Please sign in to comment.