Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
03d5853c
authored
2021-08-10 17:28:56 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
modify errorType
1 parent
08ce1a04
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
03d5853
...
...
@@ -829,7 +829,8 @@ class ResourcesView(GenericView):
authentication_classes
=
[]
def
get
(
self
,
request
):
error_type
=
ErrorType
.
get_mappings
()
error_type_map
=
ErrorType
.
get_mappings
()
error_type
=
[{
'label'
:
v
,
'value'
:
k
}
for
k
,
v
in
error_type_map
.
items
()]
resources
=
{
'error_type'
:
error_type
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment