Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladislav Rykov
THSO.server
Commits
671924c1
Commit
671924c1
authored
Jun 04, 2020
by
Vladislav Rykov
Browse files
maintainer workers deactivated
parent
957de63d
Changes
5
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
671924c1
**.swp
**.pyc
app/app/__init__.py
View file @
671924c1
...
...
@@ -12,5 +12,8 @@ mail = Mail(app)
from
app
import
views
from
app
import
views_admin
from
app.helpers
import
maintainer
# No need anymore in maintainer since
# 1) Notifications are fired in soft real time
# 2) data folder is cleaned after every csv download
# from app.helpers import maintainer
from
app.helpers
import
notification_manager
app/app/__pycache__/__init__.cpython-37.pyc
View file @
671924c1
No preview for this file type
app/app/__pycache__/views.cpython-37.pyc
View file @
671924c1
No preview for this file type
app/app/views.py
View file @
671924c1
...
...
@@ -514,7 +514,6 @@ def application_new_alert(appkey):
res
=
nfs
.
create
(
nid
,
appkey
,
request
.
form
[
'devid'
],
request
.
form
[
'alertname'
],
desc
,
'alert'
,
request
.
form
[
'alertemail'
])
if
res
[
0
]:
# create new function and trigger
#tr.create_function(appkey, request.form['devid'], nid, [request.form['varname'],request.form['operation'],request.form['avalue']])
t
=
tr
.
create_function_rt
(
appkey
,
request
.
form
[
'devid'
],
nid
,
[
request
.
form
[
'varname'
],
request
.
form
[
'operation'
],
request
.
form
[
'avalue'
]],
'alert'
,
request
.
form
[
'alertemail'
])
print
(
t
)
tr
.
create
(
appkey
,
request
.
form
[
'devid'
],
nid
)
...
...
@@ -580,7 +579,6 @@ def application_new_automation(appkey):
res
=
nfs
.
create
(
nid
,
appkey
,
request
.
form
[
'devid'
],
request
.
form
[
'automationname'
],
desc
,
'automation'
,
action
)
if
res
[
0
]:
# create new function and trigger
#tr.create_function(appkey, request.form['devid'], nid, [request.form['varname'],request.form['operation'],request.form['avalue']])
t
=
tr
.
create_function_rt
(
appkey
,
request
.
form
[
'devid'
],
nid
,
[
request
.
form
[
'varname'
],
request
.
form
[
'operation'
],
request
.
form
[
'avalue'
]],
'automation'
,
action
)
tr
.
create
(
appkey
,
request
.
form
[
'devid'
],
nid
)
flash
(
'Automation created'
,
'success'
)
...
...
Write
Preview
Supports
Markdown
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