Moved the creation of the virtual table to the databasegenerator.py

This commit is contained in:
Kristy Fournier 2026-01-21 15:56:55 -05:00
parent 758f399636
commit d33ee77693
2 changed files with 4 additions and 6 deletions

View file

@ -41,11 +41,6 @@ else:
soundLocation += "\\"
#Create Virtual table for searching
#I'm not sure why i don't do this in the databaseGenerator, but it also takes like 3 seconds so i'm not messing with it rn
songDatabase.execute("DROP TABLE virtualSongs;")
songDatabase.execute("CREATE VIRTUAL TABLE virtualSongs USING fts5(filename, title, artist, art, length, lossless);")
songDatabase.execute("INSERT INTO virtualSongs SELECT * FROM songs;")
fileofDB.commit()
fileofDB.close()
#Initializing all the global stuff
random.seed()