|
@@ -17,7 +17,9 @@ from larigira.timegen import get_timegenerator, timegenerate
|
|
|
from larigira import forms
|
|
|
from larigira.config import get_conf
|
|
|
from .suggestions import get_suggestions
|
|
|
-db = Blueprint('db', __name__, url_prefix='/db', template_folder='templates')
|
|
|
+db = Blueprint('db', __name__,
|
|
|
+ url_prefix=get_conf()['ROUTE_PREFIX'] + '/db',
|
|
|
+ template_folder='templates')
|
|
|
|
|
|
|
|
|
def get_model():
|
|
@@ -172,7 +174,9 @@ def edit_event(alarmid):
|
|
|
actions = tuple(model.get_actions_by_alarm(alarm))
|
|
|
return render_template('edit_event.html',
|
|
|
alarm=alarm, all_actions=allactions,
|
|
|
- actions=actions)
|
|
|
+ actions=actions,
|
|
|
+ routeprefix=get_conf()['ROUTE_PREFIX']
|
|
|
+ )
|
|
|
|
|
|
|
|
|
@db.route('/api/alarm/<alarmid>/actions', methods=['POST'])
|