astrodatagui: StarsDB: implement function to insert star alternative names
This commit is contained in:
@@ -93,3 +93,9 @@ class StarDB():
|
||||
self.dbCursor.execute(f"""INSERT OR IGNORE INTO
|
||||
sequenceSourceNames(sequenceSourceNameID, name)
|
||||
VALUES({i}, \"{s}\")""")
|
||||
|
||||
def insertStarAlternativeNames(self, mainName: str, altNames):
|
||||
for an in altNames:
|
||||
self.dbCursor.execute(f"""INSERT OR IGNORE INTO
|
||||
starnames(mainName, altName)
|
||||
VALUES(\"{mainName}\", \"{an["ID"]}\")""")
|
||||
Reference in New Issue
Block a user