1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-19 18:31:16 +00:00

Fix typos

This commit is contained in:
Mo 2022-03-19 22:22:23 +01:00
parent 37d5bce11d
commit 08b5d983ea

View file

@ -24,7 +24,7 @@ from advlabdb.models import (
def importFromFile(filePath):
if filePath[-4:] != ".txt":
raise DataBaseImportException(
"The import file has to be a text file with txt extention (.txt at the end of the filename)!"
"The import file has to be a text file with txt extension (.txt at the end of the filename)!"
)
semesters = {}
@ -78,7 +78,7 @@ def importFromFile(filePath):
elif tableName == "Appointment":
activeDict = appointments
else:
raise DataBaseImportException(f"{tableName} is not a valide table name!")
raise DataBaseImportException(f"{tableName} is not a valid table name!")
readHeader = True
continue