From 23ba4b74c26d9682eb33ca667e85f87fb0ab47f5 Mon Sep 17 00:00:00 2001 From: Tom Aldcroft Date: Thu, 30 Jan 2025 07:19:30 -0500 Subject: [PATCH] Require at least one row of data in full data for server sync --- cheta/update_server_sync.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheta/update_server_sync.py b/cheta/update_server_sync.py index 272656b..41006a2 100644 --- a/cheta/update_server_sync.py +++ b/cheta/update_server_sync.py @@ -285,10 +285,13 @@ def update_index_file(index_file, opt, logger): f"filetime > {DateTime(filetime0).fits[:-4]} {filetime0} " f"filetime <= {DateTime(filetime1).fits[:-4]} {filetime1} " ) + # Require files in time range and which have at least one row of data. It + # can happen that L0 files are created but with zero rows. archfiles = dbi.fetchall( "select * from archfiles " f"where filetime > {filetime0} " f"and filetime <= {filetime1} " + "and rowstop > rowstart " "order by filetime " )