diff --git a/main/astrodatagui/db/StarsDB.py b/main/astrodatagui/db/StarsDB.py index 39bdf64..11fdd7b 100644 --- a/main/astrodatagui/db/StarsDB.py +++ b/main/astrodatagui/db/StarsDB.py @@ -88,9 +88,16 @@ class StarDB(): );""") self.insertDefaultValues() + self.dbCorrection() self.connection.commit() + def dbCorrection(self): + self.dbCursor.execute("""UPDATE TABLE starInfo + SET spType = "-" + WHERE spType IS NULL + OR length(spType) = 0;""") + def insertDefaultValues(self): sources = ["TESS", "Kepler", "K2"] for s in sources: