Skip to content

Commit

Permalink
Merge pull request #55 from Killerrekt/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Emerald-Wolf committed Mar 17, 2024
2 parents b2aa797 + ac24fdc commit b94f374
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/services/admin/get_reviews.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func GetReviewsByTeamID(teamID uuid.UUID) (reviews []models.TeamReview, err erro
func GetReviewsByRound(round int) (reviews []models.TeamReview, err error) {
var rows *sql.Rows
rows, err = database.DB.Query(
"SELECT id, team_id, reviewer, innovation_score, functionality_score, design_score, tech_score, presentation_score, comments, total_score FROM reviews WHERE review_round = $1",
"SELECT id, team_id, reviewer, innovation_score, functionality_score, design_score, tech_score, presentation_score, comments, total_score, review_round FROM reviews WHERE review_round = $1",
round,
)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/services/admin/update_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

func UpdateReview(review models.TeamReview) error {
_, err := database.DB.Exec(
`UPDATE reviews SET reviwer = $1, innovation_score = $2, functionality_score = $3, design_score = $4, tech_score = $5, presentation_score = $6, comments = $7, total_score = $8, review_round = $9 WHERE id = $10`,
`UPDATE reviews SET reviewer = $1, innovation_score = $2, functionality_score = $3, design_score = $4, tech_score = $5, presentation_score = $6, comments = $7, total_score = $8, review_round = $9 WHERE id = $10`,
review.Reviewer,
review.InnovationScore,
review.FunctionalityScore,
Expand Down

0 comments on commit b94f374

Please sign in to comment.