astrodatagui: StarsDB: add getStarAltNames function

This commit is contained in:
2024-03-11 15:38:24 +01:00
parent 088245714a
commit ef5caefdfe
+7
View File
@@ -142,6 +142,13 @@ class StarDB():
sequence ASC""")
return res.fetchall()
def getStarAltNames(self, mainName):
res = self.dbCursor.execute(f"""SELECT altName FROM starnames
WHERE mainName = \"{mainName}\"
ORDER BY
altName ASC""")
return res.fetchall()
def getStarInfos(self, mainName):
res = self.dbCursor.execute(f"""SELECT spType, rotVel, rotVelUnit, dist, distUnit
FROM starInfo