mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Fix typos
This commit is contained in:
parent
37d5bce11d
commit
08b5d983ea
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ from advlabdb.models import (
|
||||||
def importFromFile(filePath):
|
def importFromFile(filePath):
|
||||||
if filePath[-4:] != ".txt":
|
if filePath[-4:] != ".txt":
|
||||||
raise DataBaseImportException(
|
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 = {}
|
semesters = {}
|
||||||
|
@ -78,7 +78,7 @@ def importFromFile(filePath):
|
||||||
elif tableName == "Appointment":
|
elif tableName == "Appointment":
|
||||||
activeDict = appointments
|
activeDict = appointments
|
||||||
else:
|
else:
|
||||||
raise DataBaseImportException(f"{tableName} is not a valide table name!")
|
raise DataBaseImportException(f"{tableName} is not a valid table name!")
|
||||||
|
|
||||||
readHeader = True
|
readHeader = True
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue