Skip to content

Commit a4516fe

Browse files
Updated condition in AdminDb.py
1 parent 66ce29e commit a4516fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

responsible-ai-moderationlayer/src/dao/AdminDb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def create(value):
215215

216216
class Results:
217217
# mycol = mydb["moderationtelemetrydata"]
218-
if conn == None:
218+
if conn == None and os.getenv("DBTYPE")!="False":
219219
logdb=mydb["Logdb"]
220220
mycol = mydb["Results"]
221221
mycol2 = mydb["Results"]

0 commit comments

Comments
 (0)