mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-28 19:06:19 -05:00
Creating a new Collection model for use in organizing FileGroups.
Replacing Channels and Domains with Collection. Moving downloading relationships from Channel to Collection. Created domains.yaml config to manage tagged domain collections. Adding turn-key upgrade solution in the UI.
This commit is contained in:
parent
1f7b1c8744
commit
4fae4ae1b4
115 changed files with 13309 additions and 986 deletions
|
|
@ -9,10 +9,8 @@ from sqlalchemy.orm import Session
|
|||
|
||||
from wrolpi.api_utils import json_response, api_app
|
||||
from wrolpi.common import logger, wrol_mode_check, api_param_limiter, TRACE_LEVEL
|
||||
from wrolpi.db import get_db_session
|
||||
from wrolpi.errors import ValidationError
|
||||
from wrolpi.events import Events
|
||||
from wrolpi.files.lib import upsert_file
|
||||
from wrolpi.schema import JSONErrorResponse
|
||||
from wrolpi.switches import register_switch_handler, ActivateSwitchMethod
|
||||
from . import lib, schema
|
||||
|
|
@ -48,14 +46,6 @@ async def delete_archive(_: Request, archive_ids: str):
|
|||
return response.empty()
|
||||
|
||||
|
||||
@archive_bp.get('/domains')
|
||||
@openapi.summary('Get a list of all Domains and their Archive statistics')
|
||||
@openapi.response(200, schema.GetDomainsResponse, "The list of domains")
|
||||
async def get_domains(_: Request):
|
||||
domains = lib.get_domains()
|
||||
return json_response({'domains': domains, 'totals': {'domains': len(domains)}})
|
||||
|
||||
|
||||
archive_limit_limiter = api_param_limiter(100)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue