Skip to content

Commit

Permalink
fix DATABASE_NAME posixpath
Browse files Browse the repository at this point in the history
  • Loading branch information
pirate committed Jan 20, 2021
1 parent 50ff969 commit 02bdb3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions archivebox/cli/archivebox_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def main(args: Optional[List[str]]=None, stdin: Optional[IO]=None, pwd: Optional
parser.add_argument(
'--depth', # '-d',
type=int,
choices=[0, 1],
default=0,
help='Depth to archive to [0] or 1, see "add" command help for more info.',
)
Expand Down
2 changes: 1 addition & 1 deletion archivebox/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
################################################################################

DATABASE_FILE = Path(OUTPUT_DIR) / SQL_INDEX_FILENAME
DATABASE_NAME = os.environ.get("ARCHIVEBOX_DATABASE_NAME", DATABASE_FILE)
DATABASE_NAME = os.environ.get("ARCHIVEBOX_DATABASE_NAME", str(DATABASE_FILE))

DATABASES = {
'default': {
Expand Down

0 comments on commit 02bdb3b

Please sign in to comment.