mirror of
https://github.com/photoprism/photoprism.git
synced 2026-07-17 16:49:04 +00:00
* Backend: improve Yes/No capabilities * Backend: constants package with Yes/No maps and True/False strings * Backend: rename constants to enum * Backend: correct case on russian Yes, more tests * Enum: utilise enum package
18 lines
457 B
Go
18 lines
457 B
Go
package list
|
|
|
|
import "github.com/photoprism/photoprism/pkg/enum"
|
|
|
|
// StringLengthLimit specifies the maximum length of string return values.
|
|
var StringLengthLimit = 767
|
|
|
|
// Bool specifies boolean string values so they can be normalized.
|
|
var Bool = map[string]string{
|
|
"true": enum.True,
|
|
"yes": enum.True,
|
|
"on": enum.True,
|
|
"enable": enum.True,
|
|
"false": enum.False,
|
|
"no": enum.False,
|
|
"off": enum.False,
|
|
"disable": enum.False,
|
|
}
|