diff --git a/repository/answer/answer.go b/repository/answer/answer.go index 4fb7d48..e579112 100644 --- a/repository/answer/answer.go +++ b/repository/answer/answer.go @@ -3,7 +3,6 @@ package answer import ( "context" "database/sql" - "fmt" "penahub.gitlab.yandexcloud.net/backend/quiz/common.git/dal/sqlcgen" "penahub.gitlab.yandexcloud.net/backend/quiz/common.git/model" ) @@ -84,7 +83,7 @@ func (r *AnswerRepository) GetAllAnswersByQuizID(ctx context.Context, session st } for _, row := range rows { - if row.Questiontype == model.TypeFile { + /*if row.Questiontype == model.TypeFile { fmt.Println("GALL", row.Qid, row.QuestionID, row.Content) fileURL, err := r.answerMinio.GetAnswerURL(ctx, row.Qid.UUID.String(), row.QuestionID, row.Content.String) if err != nil { @@ -92,7 +91,7 @@ func (r *AnswerRepository) GetAllAnswersByQuizID(ctx context.Context, session st return nil, err } row.Content = sql.NullString{String: fmt.Sprintf("%s|%s", fileURL, row.Content.String), Valid: true} - } + }*/ resultAnswer := model.ResultAnswer{ Content: row.Content.String,