mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
Add type-hints for books.process
This commit is contained in:
parent
940d982ad3
commit
f50ef24314
1 changed files with 8 additions and 1 deletions
|
@ -13,7 +13,14 @@ from core.utils import (
|
||||||
requests.packages.urllib3.disable_warnings()
|
requests.packages.urllib3.disable_warnings()
|
||||||
|
|
||||||
|
|
||||||
def process(section, dir_name, input_name=None, status=0, client_agent='manual', input_category=None):
|
def process(
|
||||||
|
section,
|
||||||
|
dir_name,
|
||||||
|
input_name=None,
|
||||||
|
status=0,
|
||||||
|
client_agent='manual',
|
||||||
|
input_category=None,
|
||||||
|
) -> ProcessResult:
|
||||||
status = int(status)
|
status = int(status)
|
||||||
|
|
||||||
cfg = dict(core.CFG[section][input_category])
|
cfg = dict(core.CFG[section][input_category])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue