mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-09 12:21:57 -04:00
Fix two small errors in abx-{readwise,spec-config} (#1635)
Some checks are pending
CodeQL / Analyze (python) (push) Waiting to run
Build Debian package / build (push) Waiting to run
Deploy static content to Pages / deploy (push) Waiting to run
Build Homebrew package / build (push) Waiting to run
Build GitHub Pages website / build (push) Waiting to run
Build GitHub Pages website / deploy (push) Blocked by required conditions
Run linters / lint (push) Waiting to run
Build Pip package / build (push) Waiting to run
Run tests / python_tests (ubuntu-22.04, 3.11) (push) Waiting to run
Run tests / docker_tests (push) Waiting to run
Some checks are pending
CodeQL / Analyze (python) (push) Waiting to run
Build Debian package / build (push) Waiting to run
Deploy static content to Pages / deploy (push) Waiting to run
Build Homebrew package / build (push) Waiting to run
Build GitHub Pages website / build (push) Waiting to run
Build GitHub Pages website / deploy (push) Blocked by required conditions
Run linters / lint (push) Waiting to run
Build Pip package / build (push) Waiting to run
Run tests / python_tests (ubuntu-22.04, 3.11) (push) Waiting to run
Run tests / docker_tests (push) Waiting to run
This commit is contained in:
commit
6edcac6a40
2 changed files with 3 additions and 4 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>, ...}
|
||||
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ class ConfigPluginSpec:
|
|||
@abx.hookspec
|
||||
@abx.hookimpl
|
||||
def get_CONFIG() -> dict[abx.PluginId, 'BaseConfigSet | ConstantsDict']:
|
||||
from archivebox import CONSTANTS
|
||||
from archivebox.config import CONSTANTS
|
||||
"""Get the config for a single plugin -> {plugin_id: PluginConfigSet()}"""
|
||||
return {
|
||||
'CONSTANTS': CONSTANTS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue