Skip to content

Commit

Permalink
Require at least one row of data in full data for server sync
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Jan 30, 2025
1 parent 5c5dd03 commit 23ba4b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cheta/update_server_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
)

Expand Down

0 comments on commit 23ba4b7

Please sign in to comment.