diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-07-24 19:53:19 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-24 13:20:31 -0700 |
commit | c2b45ab1e2c9c905750056da2d9209a1a6fd9d92 (patch) | |
tree | ecc4f90fac74fe0b2767d344f1805e7b97596a9a /parse-xml.c | |
parent | a05e37188b5197f04b2cb68cf2df49994a758362 (diff) | |
download | subsurface-c2b45ab1e2c9c905750056da2d9209a1a6fd9d92.tar.gz |
Divinglog import: find or create divesite
We obviously should lookup if the dive site already exist before
creating a new one.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c index 429277f49..17a2df35b 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -3100,7 +3100,7 @@ extern int divinglog_dive(void *param, int columns, char **data, char **column) cur_dive->when = (time_t)(atol(data[1])); if (data[2]) - cur_dive->dive_site_uuid = create_dive_site(data[2]); + cur_dive->dive_site_uuid = find_or_create_dive_site_with_name(data[2]); if (data[3]) utf8_string(data[3], &cur_dive->buddy); |