mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
[Files Refactor] Performance tuning (#2865)
* Don't load image files by default * Don't load gallery files by default * Don't load scene files by default * Retry locked transactions forever * Don't show release notes if config not loaded * Don't translate path slashes in export
This commit is contained in:
@@ -13,9 +13,9 @@ type queryURLParameters map[string]string
|
||||
|
||||
func queryURLParametersFromScene(scene *models.Scene) queryURLParameters {
|
||||
ret := make(queryURLParameters)
|
||||
ret["checksum"] = scene.Checksum()
|
||||
ret["oshash"] = scene.OSHash()
|
||||
ret["filename"] = filepath.Base(scene.Path())
|
||||
ret["checksum"] = scene.Checksum
|
||||
ret["oshash"] = scene.OSHash
|
||||
ret["filename"] = filepath.Base(scene.Path)
|
||||
|
||||
if scene.Title != "" {
|
||||
ret["title"] = scene.Title
|
||||
@@ -53,8 +53,8 @@ func queryURLParametersFromGallery(gallery *models.Gallery) queryURLParameters {
|
||||
ret := make(queryURLParameters)
|
||||
ret["checksum"] = gallery.Checksum()
|
||||
|
||||
if gallery.Path() != "" {
|
||||
ret["filename"] = filepath.Base(gallery.Path())
|
||||
if gallery.Path != "" {
|
||||
ret["filename"] = filepath.Base(gallery.Path)
|
||||
}
|
||||
if gallery.Title != "" {
|
||||
ret["title"] = gallery.Title
|
||||
|
||||
Reference in New Issue
Block a user