dlflannery commited on
Commit
73000f3
·
verified ·
1 Parent(s): 648b51d

Update app.py

Browse files

hack to remove Marriage & Divorce.db

Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -355,7 +355,9 @@ def chat(prompt, user_window, pwd_window, past, response, gptModel, clip_text, d
355
  if user_window == unames[0] and pwd_window == pwdList[0]:
356
  isBoss = True
357
  if prompt.startswith('delete'):
358
- db_path = dataDir + prompt[7:]
 
 
359
  if not os.path.exists(db_path):
360
  response = f'File {db_path} not found'
361
  else:
 
355
  if user_window == unames[0] and pwd_window == pwdList[0]:
356
  isBoss = True
357
  if prompt.startswith('delete'):
358
+ paths = glob(dataDir + 'Marriage*.db')
359
+ db_path = paths[0]
360
+ # db_path = dataDir + prompt[7:]
361
  if not os.path.exists(db_path):
362
  response = f'File {db_path} not found'
363
  else: