Dashboard editing
This commit is contained in:
parent
c3fe5951d4
commit
dc0ad136e6
6 changed files with 1596 additions and 65 deletions
|
|
@ -3,11 +3,13 @@ package main
|
|||
import (
|
||||
// External
|
||||
werr "git.ahall.se/go/wrappederror"
|
||||
"github.com/jackc/pgx/v5"
|
||||
|
||||
// Standard
|
||||
"context"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"sort"
|
||||
"strings"
|
||||
|
|
@ -152,7 +154,7 @@ func ProblemClose(trigger Trigger) (problemID int, err error) { // {{{
|
|||
)
|
||||
|
||||
err = row.Scan(&problemID)
|
||||
if err == sql.ErrNoRows {
|
||||
if errors.Is(err, pgx.ErrNoRows) {
|
||||
err = nil
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue