Skip to content

Commit

Permalink
fix: matching title hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
CrescentKohana committed Mar 22, 2024
1 parent a06923d commit ef56695
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/db/gallery.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ func GetSeries() ([]string, error) {

// TitleHashMatch returns true if the title hash of the gallery matches the stored hash.
func TitleHashMatch(galleryUUID string) bool {
stmt := SELECT(Gallery.UUID, Gallery.Title, Reference.MetaTitleHash).
stmt := SELECT(Gallery.UUID.AS("UUID"), Gallery.Title.AS("Title"), Reference.MetaTitleHash.AS("MetaTitleHash")).
FROM(Gallery.Table.
LEFT_JOIN(Reference, Reference.GalleryUUID.EQ(String(galleryUUID))),
).
Expand Down
2 changes: 1 addition & 1 deletion pkg/metadata/title.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func ParseTitles(tryNative bool, overwrite bool) {
zap.String("gallery", gallery.UUID),
zap.String("err", err.Error()))
}
log.Z.Info("metadata parsed based on title",
log.Z.Info("metadata parsed based from the title",
zap.String("uuid", gallery.UUID),
zap.String("title", gallery.Title))
}
Expand Down

0 comments on commit ef56695

Please sign in to comment.