Cobalt import: use find or create divesite

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-07-24 19:53:20 +03:00 committed by Dirk Hohndel
parent c2b45ab1e2
commit 0d2d91a28c

View file

@ -2691,7 +2691,7 @@ extern int cobalt_location(void *handle, int columns, char **data, char **column
sprintf(tmp, "%s / %s", location, data[0]);
free(location);
location = NULL;
cur_dive->dive_site_uuid = create_dive_site(tmp);
cur_dive->dive_site_uuid = find_or_create_dive_site_with_name(tmp);
free(tmp);
} else {
location = strdup(data[0]);