Quantcast
Channel: Earthdata Forum
Viewing all articles
Browse latest Browse all 1307

Home • $OCSSWROOT/bin/seadasutils/ancDB.py

$
0
0
Dear Support,

The function delete_record doesn't work as expected, probably because it's not extensively tested.
The current V2024.0, from line 134

Code:

                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

Code:

        else:            satid = self.check_file(filename, starttime=starttime)            c.execute('DELETE from satancinfo where satid = ?', [satid])            c.execute('DELETE from satfiles where satid = ?', [satid])
Thanks,
Yuyuan

Statistics: Posted by oo_processing — Fri Jul 05, 2024 2:18 pm America/New_York



Viewing all articles
Browse latest Browse all 1307

Trending Articles