Implement notification rules and settings
This commit is contained in:
@@ -10,6 +10,7 @@ from django_tables2 import SingleTableView
|
||||
from rest_framework.parsers import FormParser
|
||||
from rest_framework.views import APIView
|
||||
|
||||
from core.db import add_defaults, remove_defaults
|
||||
from core.db.storage import db
|
||||
from core.lib.threshold import (
|
||||
annotate_num_chans,
|
||||
@@ -17,7 +18,6 @@ from core.lib.threshold import (
|
||||
get_chans,
|
||||
get_users,
|
||||
)
|
||||
from core.views import helpers
|
||||
from core.views.ui.tables import DrilldownTable
|
||||
|
||||
# from copy import deepcopy
|
||||
@@ -125,7 +125,7 @@ class DrilldownTableView(SingleTableView):
|
||||
# No query, this is a fresh page load
|
||||
# Don't try to search, since there's clearly nothing to do
|
||||
params_with_defaults = {}
|
||||
helpers.add_defaults(params_with_defaults)
|
||||
add_defaults(params_with_defaults)
|
||||
context = {
|
||||
"sizes": sizes,
|
||||
"params": params_with_defaults,
|
||||
@@ -194,12 +194,12 @@ class DrilldownTableView(SingleTableView):
|
||||
|
||||
# Add any default parameters to the context
|
||||
params_with_defaults = dict(query_params)
|
||||
helpers.add_defaults(params_with_defaults)
|
||||
add_defaults(params_with_defaults)
|
||||
context["params"] = params_with_defaults
|
||||
|
||||
# Remove anything that we or the user set to a default for
|
||||
# pretty URLs
|
||||
helpers.remove_defaults(query_params)
|
||||
remove_defaults(query_params)
|
||||
url_params = urllib.parse.urlencode(query_params)
|
||||
context["client_uri"] = url_params
|
||||
|
||||
|
||||
Reference in New Issue
Block a user