Welcome to the Earthdata Forum! Here, the scientific user community and subject matter experts from NASA Distributed Active Archive Centers (DAACs), and other contributors, discuss research needs, data, and data applications.
else:
satid = self.check_file(filename, starttime=starttime)
ancids = conn.execute('select ancid from satancinfo where satid = ?', [satid])
for a in ancids:
c.execute('DELETE from satancinfo where ancid = ?', [a[0]])
c.execute('DELETE from ancfiles where ancid = ?', [a[0]])
Using ancid as key to delete records in tables satancinfo and ancfiles would delete records needed by other satid. Therefore my suggestion is