2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Add more checks

This commit is contained in:
Matthias Mair
2024-08-19 22:55:16 +02:00
parent c26d73036d
commit 3b9d485403
94 changed files with 228 additions and 358 deletions

View File

@ -89,7 +89,7 @@ def check_version_number(version_string, allow_duplicate=False):
if release > version_tuple:
highest_release = False
print(f'Found newer release: {str(release)}')
print(f'Found newer release: {release!s}')
return highest_release
@ -134,7 +134,7 @@ if __name__ == '__main__':
version = None
with open(version_file, 'r') as f:
with open(version_file) as f:
text = f.read()
# Extract the InvenTree software version