Skip to content

Commit

Permalink
Merge pull request ModOrganizer2#119 from ZashIn/fix/BasicModDataChec…
Browse files Browse the repository at this point in the history
…ker.dataLooksValid

Fix valid match in `BasicModDataChecker.dataLooksValid()`
  • Loading branch information
Holt59 committed Oct 2, 2023
2 parents 2802df3 + c441e42 commit 01d2c33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions basic_features/basic_mod_data_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ def dataLooksValid(
else:
status = mobase.ModDataChecker.INVALID
break
elif rp.valid.match(name) and status == mobase.ModDataChecker.INVALID:
status = mobase.ModDataChecker.VALID
elif rp.valid.match(name):
if status is mobase.ModDataChecker.INVALID:
status = mobase.ModDataChecker.VALID
elif rp.delete.match(name) or rp.move_match(name) is not None:
status = mobase.ModDataChecker.FIXABLE
else:
Expand Down

0 comments on commit 01d2c33

Please sign in to comment.