astrodatagui: StarsDB: add getStarAltNames function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user