Spaces:
Running
Running
ahmadgenus
commited on
Commit
·
6d48e44
1
Parent(s):
ed2c8ad
latest
Browse files- chatbot.py +1 -1
chatbot.py
CHANGED
@@ -29,7 +29,7 @@ reddit = praw.Reddit(
|
|
29 |
client_secret=os.getenv("REDDIT_CLIENT_SECRET"),
|
30 |
user_agent=os.getenv("REDDIT_USER_AGENT")
|
31 |
)
|
32 |
-
|
33 |
# SQLite DB Connection
|
34 |
def get_db_conn():
|
35 |
return sqlite3.connect("reddit_data.db", check_same_thread=False)
|
|
|
29 |
client_secret=os.getenv("REDDIT_CLIENT_SECRET"),
|
30 |
user_agent=os.getenv("REDDIT_USER_AGENT")
|
31 |
)
|
32 |
+
# Updated for SQLite
|
33 |
# SQLite DB Connection
|
34 |
def get_db_conn():
|
35 |
return sqlite3.connect("reddit_data.db", check_same_thread=False)
|