Indexer: Reset photo quality after merging
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
e2d3055015
commit
fd53d30caa
1 changed files with 6 additions and 0 deletions
|
@ -110,5 +110,11 @@ func (m *Photo) Merge(mergeMeta, mergeUuid bool) (original Photo, merged Photos,
|
|||
m.PhotoQuality = -1
|
||||
}
|
||||
|
||||
original.PhotoQuality = original.QualityScore()
|
||||
|
||||
if err := original.Save(); err != nil {
|
||||
log.Errorf("photo: %s in %s (merge)", err, original.PhotoName)
|
||||
}
|
||||
|
||||
return original, merged, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue