log bugfix
This commit is contained in:
@@ -286,7 +286,7 @@ def get_eventactions(db: Session,eventid: str):
|
||||
|
||||
|
||||
def create_log(db: Session, error:schemas.ErrorCreate):
|
||||
db_log = models.ErrorLog(location=error.location,title=error.title,content=error.content)
|
||||
db_log = models.ErrorLog(title=error.title,location=error.location,content=error.content)
|
||||
db.add(db_log)
|
||||
db.commit()
|
||||
db.refresh(db_log)
|
||||
|
||||
Reference in New Issue
Block a user