People: Improve "photoprism places update" CLI command #1664
This commit is contained in:
parent
bb9442e6c4
commit
c058c01770
2 changed files with 4 additions and 4 deletions
|
@ -15,17 +15,17 @@ import (
|
|||
// PlacesCommand registers the places subcommands.
|
||||
var PlacesCommand = cli.Command{
|
||||
Name: "places",
|
||||
Usage: "Geolocation data subcommands",
|
||||
Usage: "Location information subcommands",
|
||||
Subcommands: []cli.Command{
|
||||
{
|
||||
Name: "update",
|
||||
Usage: "Fetches updated location infos",
|
||||
Usage: "Fetches updated location data",
|
||||
Action: placesUpdateAction,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// placesUpdateAction fetches updated location infos.
|
||||
// placesUpdateAction fetches updated location data.
|
||||
func placesUpdateAction(ctx *cli.Context) error {
|
||||
start := time.Now()
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ func (m *Cell) Refresh(api string) (err error) {
|
|||
|
||||
// Find existing place by label.
|
||||
if err := UnscopedDb().Where("place_label = ?", l.Label()).First(&place).Error; err != nil {
|
||||
log.Error(err)
|
||||
log.Tracef("places: %s for cell %s", err, m.ID)
|
||||
place = &Place{ID: m.ID}
|
||||
} else {
|
||||
log.Tracef("places: found matching place %s for cell %s", place.ID, m.ID)
|
||||
|
|
Loading…
Reference in a new issue