Skip to content
Snippets Groups Projects
Unverified Commit 1193bab7 authored by Cseh Viktor's avatar Cseh Viktor
Browse files

HTML POST processing missing LAB number fixd

parent 24c1453c
No related branches found
No related tags found
1 merge request!2HTML POST processing missing LAB number fixd
......@@ -30,7 +30,7 @@ func Dbinit() {
c = validConfig
}
dsn := string("host="+ c.Host + " user=" + c.User + " password=" + c.Password + " port=" + c.Port + " sslmode=disabled TimeZone=Europe/Budapest")
dsn := string("host="+ c.Host + " user=" + c.User + " password=" + c.Password + " port=" + c.Port + " sslmode=disable TimeZone=Europe/Budapest")
Db, err = gorm.Open(postgres.Open(dsn), &gorm.Config{})
if err != nil {
......
......@@ -14,6 +14,7 @@ func Create(c *gin.Context) {
}
question := &models.Question{
QuestionText: r.QuestionText,
Lab: r.Lab,
Answer1: r.Answer1,
Answer2: r.Answer2,
Answer3: r.Answer3,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment