Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SiCKRAGE
sickrage
Commits
b6faf542
Commit
b6faf542
authored
Jan 03, 2021
by
echel0n
Browse files
Refactored API v1 postprocess process methods to lower-case
parent
752f2b41
Changes
1
Hide whitespace changes
Inline
Side-by-side
sickrage/core/webserver/handlers/api/v1/__init__.py
View file @
b6faf542
...
...
@@ -1175,7 +1175,7 @@ class CMD_PostProcess(ApiCall):
self
.
path
,
args
=
self
.
check_params
(
"path"
,
None
,
False
,
"string"
,
[],
*
args
,
**
kwargs
)
self
.
force_replace
,
args
=
self
.
check_params
(
"force_replace"
,
False
,
False
,
"bool"
,
[],
*
args
,
**
kwargs
)
self
.
return_data
,
args
=
self
.
check_params
(
"return_data"
,
False
,
False
,
"bool"
,
[],
*
args
,
**
kwargs
)
self
.
process_method
,
args
=
self
.
check_params
(
"process_method"
,
ProcessMethod
.
COPY
.
name
,
False
,
"string"
,
[
x
.
name
for
x
in
ProcessMethod
],
*
args
,
**
kwargs
)
self
.
process_method
,
args
=
self
.
check_params
(
"process_method"
,
ProcessMethod
.
COPY
.
name
,
False
,
"string"
,
[
x
.
name
.
lower
()
for
x
in
ProcessMethod
],
*
args
,
**
kwargs
)
self
.
is_priority
,
args
=
self
.
check_params
(
"is_priority"
,
False
,
False
,
"bool"
,
[],
*
args
,
**
kwargs
)
self
.
delete
,
args
=
self
.
check_params
(
"delete"
,
False
,
False
,
"bool"
,
[],
*
args
,
**
kwargs
)
self
.
failed
,
args
=
self
.
check_params
(
"failed"
,
False
,
False
,
"bool"
,
[],
*
args
,
**
kwargs
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment