Cleaned up view constructors to accept just a datasette instance

This commit is contained in:
Simon Willison 2018-06-30 09:51:57 -05:00
commit 71b46fd9f5
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
4 changed files with 5 additions and 14 deletions

View file

@ -12,9 +12,6 @@ class IndexView(RenderMixin):
def __init__(self, datasette):
self.ds = datasette
self.files = datasette.files
self.jinja_env = datasette.jinja_env
self.executor = datasette.executor
async def get(self, request, as_format):
databases = []