Skip to content

Commit 0c7122b

Browse files
authored
Fixed some more bugs
1 parent 25daaba commit 0c7122b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
LOADING_SCREENS = []
7575
LOADING_GIF = os.path.join(os.path.dirname(__file__), "data", "Loading.gif")
7676

77+
DATABASE = os.path.join(os.path.dirname(__file__), "res", "services.db")
78+
7779
LeastWaitTime = 0.5 # in second(min time for loading)
7880

7981

@@ -212,7 +214,7 @@ def sqlite3_run(self, *sqlite_query):
212214
"""
213215
output = []
214216
try:
215-
sqliteConnection = sqlite3.connect("services.db")
217+
sqliteConnection = sqlite3.connect(DATABASE)
216218
cursor = sqliteConnection.cursor()
217219
for arguments in sqlite_query:
218220
if isinstance(arguments, (list, tuple)):

0 commit comments

Comments
 (0)