SushantGautam commited on
Commit
a44ad18
·
1 Parent(s): 1d68384

Refactor refresh_author_db function to set custom cache directory using current working directory

Browse files
Files changed (1) hide show
  1. BridgeMentor/utils.py +2 -3
BridgeMentor/utils.py CHANGED
@@ -18,7 +18,6 @@ def refresh_author_db(check_time=False):
18
  cache_dir=custom_cache_dir
19
  )
20
  print(f"Downloaded to: {file_path}")
21
- destination_path = os.path.join(os.getcwd(), "db.sqlite3")
22
- shutil.copy(file_path, destination_path)
23
  print(
24
- f"db.sqlite3 Copied to current directory: {destination_path}")
 
18
  cache_dir=custom_cache_dir
19
  )
20
  print(f"Downloaded to: {file_path}")
21
+ shutil.copy(file_path, db_file)
 
22
  print(
23
+ f"db.sqlite3 Copied to current directory: {db_file}")