mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Add various filter criteria (#1505)
* Add various filter criteria * Add tag name criterion
This commit is contained in:
@@ -55,3 +55,12 @@ func findNeighbors(bucket int, neighbors []int, hashes []*Phash, scenes *[]int)
|
||||
func PhashToString(phash int64) string {
|
||||
return strconv.FormatUint(uint64(phash), 16)
|
||||
}
|
||||
|
||||
func StringToPhash(s string) (int64, error) {
|
||||
ret, err := strconv.ParseUint(s, 16, 64)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
return int64(ret), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user