Skip to content

Commit

Permalink
identifier updated
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseMempel committed Apr 15, 2024
1 parent 61c4120 commit 31055e7
Show file tree
Hide file tree
Showing 2 changed files with 2,000 additions and 2,000 deletions.
2 changes: 1 addition & 1 deletion py/generateID.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def createNewId(checkList):
x = idGenerator()
hasLetters = any(c.isalpha() for c in x)
hasNumbers = any(c.isdigit() for c in x)
while x in checkList or not hasLetters or not hasNumbers:
while x in checkList or not hasLetters or not hasNumbers or not x[0].isalpha():
x = idGenerator()
hasLetters = any(c.isalpha() for c in x)
hasNumbers = any(c.isdigit() for c in x)
Expand Down
Loading

0 comments on commit 31055e7

Please sign in to comment.