Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdotson committed Mar 23, 2022
1 parent 4528552 commit 3e7b938
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions superset/initialization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ def init_views(self) -> None:
from superset.reports.logs.api import ReportExecutionLogRestApi
from superset.security.api import SecurityRestApi
from superset.views.access_requests import AccessRequestsModelView
from superset.views.alerts import (
AlertView,
)
from superset.views.alerts import AlertView
from superset.views.annotations import (
AnnotationLayerModelView,
AnnotationModelView,
Expand Down
8 changes: 1 addition & 7 deletions superset/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,4 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from . import (
core,
datasource_access_request,
dynamic_plugins,
sql_lab,
user_attributes,
)
from . import core, datasource_access_request, dynamic_plugins, sql_lab, user_attributes
2 changes: 2 additions & 0 deletions superset/views/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

# TODO: access control rules for this module


class BaseAlertReportView(BaseSupersetView):
route_base = "/report"
class_permission_name = "ReportSchedule"
Expand All @@ -50,6 +51,7 @@ def log(self, pk: int) -> FlaskResponse: # pylint: disable=unused-argument

return super().render_app_template()


class AlertView(BaseAlertReportView):
route_base = "/alert"
class_permission_name = "ReportSchedule"

0 comments on commit 3e7b938

Please sign in to comment.