Backend: Add unit tests for internal/photoprism

This commit is contained in:
Theresa Gresch 2020-07-13 10:20:46 +02:00
parent 2866cb9215
commit f18ac917ab

View file

@ -255,7 +255,6 @@ func (m *MediaFile) EditedName() string {
// JsonName returns the corresponding JSON sidecar file name as used by Google Photos (and potentially other apps). // JsonName returns the corresponding JSON sidecar file name as used by Google Photos (and potentially other apps).
func (m *MediaFile) JsonName() string { func (m *MediaFile) JsonName() string {
jsonName := m.fileName + ".json" jsonName := m.fileName + ".json"
fmt.Println(jsonName)
if fs.FileExists(jsonName) { if fs.FileExists(jsonName) {
return jsonName return jsonName