renames api_db property for clarity

This commit is contained in:
msramalho
2025-02-11 12:56:33 +00:00
parent 5c59029221
commit 977f06c37a
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@
"default": None,
"help": "which group of users have access to the archive in case public=false as author",
},
"allow_rearchive": {
"use_api_cache": {
"default": True,
"type": "bool",
"help": "if False then the API database will be queried prior to any archiving operations and stop if the link has already been archived",
@@ -43,7 +43,7 @@
### Features
- **API Integration**: Supports querying for existing archives and submitting results.
- **Duplicate Prevention**: Avoids redundant archiving when `allow_rearchive` is disabled.
- **Duplicate Prevention**: Avoids redundant archiving when `use_api_cache` is disabled.
- **Configurable**: Supports settings like API endpoint, authentication token, tags, and permissions.
- **Tagging and Metadata**: Adds tags and manages metadata for archives.
- **Optional Storage**: Archives results conditionally based on configuration.

View File

@@ -15,7 +15,7 @@ class AAApiDb(Database):
""" query the database for the existence of this item.
Helps avoid re-archiving the same URL multiple times.
"""
if not self.allow_rearchive: return
if not self.use_api_cache: return
params = {"url": item.get_url(), "limit": 15}
headers = {"Authorization": f"Bearer {self.api_token}", "accept": "application/json"}