From f9cb443c73eba33c1232b735261b5165535c3f2e Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 22 Feb 2015 19:57:33 +0200 Subject: Ignore deleted dives on Cobalt import Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- parse-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2