Wrong update of the status and attephstat fields in the satfiles table of the ancillary DB
Posted: Tue Aug 06, 2019 6:45 am America/New_York
In modules.ancDB.insert_record, the status and attephstat fields in the satfiles table of the ancillary DB are updated for all the records instead of just the record that is being modified. Lines 95 to 98 should be changed to:
if atteph:
c.execute('''UPDATE satfiles
SET attephstat = ?
WHERE satid = ?''', [dbstat, satid])
else:
c.execute('''UPDATE satfiles
SET status = ?
WHERE satid = ?''', [dbstat, satid])
if atteph:
c.execute('''UPDATE satfiles
SET attephstat = ?
WHERE satid = ?''', [dbstat, satid])
else:
c.execute('''UPDATE satfiles
SET status = ?
WHERE satid = ?''', [dbstat, satid])