1
0
Fork 0
mirror of synced 2024-09-30 00:56:17 +13:00

fix DATABASE_NAME posixpath

This commit is contained in:
Nick Sweeting 2021-01-20 18:42:10 -05:00
parent 50ff969209
commit 02bdb3bdeb
2 changed files with 2 additions and 1 deletions

View file

@ -42,6 +42,7 @@ def main(args: Optional[List[str]]=None, stdin: Optional[IO]=None, pwd: Optional
parser.add_argument( parser.add_argument(
'--depth', # '-d', '--depth', # '-d',
type=int, type=int,
choices=[0, 1],
default=0, default=0,
help='Depth to archive to [0] or 1, see "add" command help for more info.', help='Depth to archive to [0] or 1, see "add" command help for more info.',
) )

View file

@ -101,7 +101,7 @@ TEMPLATES = [
################################################################################ ################################################################################
DATABASE_FILE = Path(OUTPUT_DIR) / SQL_INDEX_FILENAME 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 = { DATABASES = {
'default': { 'default': {