Display race time
All checks were successful
Build Formula10 Docker Image / build-docker (push) Successful in 14s

This commit is contained in:
2024-02-26 17:06:51 +01:00
parent dbbbd5ccc6
commit 2a0b3bc3f3
3 changed files with 9 additions and 5 deletions

View File

@ -24,7 +24,7 @@ class DbRace(db.Model):
def from_csv(cls, row: List[str]):
db_race: DbRace = cls(name=str(row[0]),
number=int(row[1]),
date=datetime.strptime(row[2], "%Y-%m-%d"),
date=datetime.strptime(str(row[2]), "%Y-%m-%d-%H-%M"),
pxx=int(row[3]))
return db_race