From a94e7e513cac64d9a128b85f97009c2de6c00001 Mon Sep 17 00:00:00 2001 From: SGCMarkus Date: Thu, 6 Jun 2024 10:43:15 +0200 Subject: [PATCH] astrodatagui: StarsDB: switch to unix type filepath --- main/astrodatagui/db/StarsDB.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/astrodatagui/db/StarsDB.py b/main/astrodatagui/db/StarsDB.py index 48219bd..c0ef1cb 100644 --- a/main/astrodatagui/db/StarsDB.py +++ b/main/astrodatagui/db/StarsDB.py @@ -97,6 +97,10 @@ class StarDB(): SET spType = "-" WHERE spType IS NULL OR length(spType) = 0;""") + self.dbCursor.execute("""UPDATE stars + SET filename = replace(filename, '\\', '/') + WHERE filename LIKE '%\\%';""") + def insertDefaultValues(self): sources = ["TESS", "Kepler", "K2"]