Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanli
evm-store
Commits
8634684d
Commit
8634684d
authored
Mar 23, 2021
by
wanliofficial
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5bda1ad6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
4 deletions
+1
-4
backend/fullstack/validation/__init__.py
backend/fullstack/validation/__init__.py
+1
-2
backend/view/apps.py
backend/view/apps.py
+0
-1
backend/view/device.py
backend/view/device.py
+0
-1
No files found.
backend/fullstack/validation/__init__.py
View file @
8634684d
...
...
@@ -28,7 +28,6 @@ def validate_schema(schema_class: Schema):
data
=
schema_class
()
.
load
(
form_data
)
request
.
schema_data
=
data
except
ValidationError
as
e
:
raise
if
config
[
'DEBUG'
]:
return
response_result
(
ResponseCode
.
PARAMETER_ERROR
,
e
.
messages
if
config
[
'DEBUG'
]
else
None
)
return
view_func
(
*
args
,
**
kwargs
)
...
...
backend/view/apps.py
View file @
8634684d
...
...
@@ -35,7 +35,6 @@ def add():
@
apps_api
.
route
(
"/delete/<uuid:id>"
,
methods
=
[
'POST'
])
@
validate_schema
(
DeleteSchema
)
@
Auth
.
auth_required
def
delete
(
id
):
try
:
...
...
backend/view/device.py
View file @
8634684d
...
...
@@ -34,7 +34,6 @@ def add():
@
device_api
.
route
(
"/delete/<uuid:id>"
,
methods
=
[
'POST'
])
@
validate_schema
(
DeleteSchema
)
@
Auth
.
auth_required
def
delete
(
id
):
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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