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:
parent
c2b45ab1e2
commit
0d2d91a28c
@ -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]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user