Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
2407f5ab
Commit
2407f5ab
authored
Aug 26, 2020
by
janis.streib
🦉
Browse files
UPD: removed context processor and communicate js_mods in the correct function
parent
99cdd223
Pipeline
#106648
passed with stages
in 8 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
middleware/net_suite/views.py
View file @
2407f5ab
...
...
@@ -69,7 +69,7 @@ def main():
@
app
.
route
(
'/api/system/info'
)
def
api_sysinfo
():
return
jsonify
({
'version'
:
VERSION
,
'mods'
:
MODS
,
'host_oper_mode'
:
db
.
host_omdl
})
return
jsonify
({
'version'
:
VERSION
,
'mods'
:
MODS
,
'host_oper_mode'
:
db
.
host_omdl
,
'js_mods'
:
app
.
config
.
get
(
'JS_MODULES'
)
})
@
app
.
route
(
'/api/session'
)
...
...
@@ -110,6 +110,3 @@ def handle_generic(e):
return
jsonify
({
'type'
:
'generic_error'
,
'error'
:
str
(
e
)}),
500
@
app
.
context_processor
def
inject_mods
():
return
dict
(
mods
=
MODS
,
local_mods
=
app
.
config
.
get
(
'JS_MODULES'
))
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