mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-09 12:21:57 -04:00
readwise: fix SOURCES_DIR syntax
Fixes: attributeerror: 'list' object has no attribute 'SOURCES_DIR'
This commit is contained in:
parent
aa55e0d02e
commit
58fc6d9cf8
1 changed files with 2 additions and 3 deletions
|
@ -15,11 +15,10 @@ from pydantic import Field
|
|||
|
||||
from abx_spec_config.base_configset import BaseConfigSet
|
||||
|
||||
SOURCES_DIR = abx.pm.hook.get_CONFIG().SOURCES_DIR
|
||||
|
||||
from archivebox.config import CONSTANTS
|
||||
|
||||
class ReadwiseConfig(BaseConfigSet):
|
||||
READWISE_DB_PATH: Path = Field(default=SOURCES_DIR / "readwise_reader_api.db")
|
||||
READWISE_DB_PATH: Path = Field(default=CONSTANTS.SOURCES_DIR / "readwise_reader_api.db")
|
||||
READWISE_READER_TOKENS: Dict[str, str] = Field(default=lambda: {}) # {<username>: <access_token>, ...}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue