summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-02-22 19:57:33 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-22 10:02:31 -0800
commitf9cb443c73eba33c1232b735261b5165535c3f2e (patch)
tree2221032375483f99a15898b8a72619d736609e5a /parse-xml.c
parent6dc2d7ba1890a492fc1d7a01b4c0f5e177f5cf0f (diff)
downloadsubsurface-f9cb443c73eba33c1232b735261b5165535c3f2e.tar.gz
Ignore deleted dives on Cobalt import
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 1d9ce9777..16988cd38 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2746,7 +2746,7 @@ int parse_cobalt_buffer(sqlite3 *handle, const char *url, const char *buffer, in
char *err = NULL;
target_table = table;
- char get_dives[] = "select Id,strftime('%s',DiveStartTime),LocationId,'buddy','notes',Units,(MaxDepthPressure*10000/SurfacePressure)-10000,DiveMinutes,SurfacePressure,SerialNumber,'model' from Dive";
+ char get_dives[] = "select Id,strftime('%s',DiveStartTime),LocationId,'buddy','notes',Units,(MaxDepthPressure*10000/SurfacePressure)-10000,DiveMinutes,SurfacePressure,SerialNumber,'model' from Dive where IsViewDeleted = 0";
retval = sqlite3_exec(handle, get_dives, &cobalt_dive, handle, &err);