mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Used isort to re-order my imports
This commit is contained in:
parent
3686385551
commit
cf1fe693e5
6 changed files with 59 additions and 38 deletions
|
|
@ -1,6 +1,15 @@
|
|||
from sanic.views import HTTPMethodView
|
||||
import asyncio
|
||||
import json
|
||||
import re
|
||||
import sqlite3
|
||||
import threading
|
||||
import time
|
||||
|
||||
import pint
|
||||
from sanic import response
|
||||
from sanic.exceptions import NotFound
|
||||
from sanic.views import HTTPMethodView
|
||||
|
||||
from datasette import __version__
|
||||
from datasette.utils import (
|
||||
CustomJSONEncoder,
|
||||
|
|
@ -9,15 +18,8 @@ from datasette.utils import (
|
|||
path_with_added_args,
|
||||
path_with_ext,
|
||||
sqlite_timelimit,
|
||||
to_css_class,
|
||||
to_css_class
|
||||
)
|
||||
import re
|
||||
import threading
|
||||
import sqlite3
|
||||
import asyncio
|
||||
import time
|
||||
import json
|
||||
import pint
|
||||
|
||||
connections = threading.local()
|
||||
ureg = pint.UnitRegistry()
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
from .base import BaseView
|
||||
from datasette.utils import validate_sql_select, to_css_class
|
||||
from sanic import response
|
||||
import os
|
||||
|
||||
from sanic import response
|
||||
|
||||
from datasette.utils import to_css_class, validate_sql_select
|
||||
|
||||
from .base import BaseView
|
||||
|
||||
|
||||
class DatabaseView(BaseView):
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
from .base import RenderMixin, HASH_LENGTH
|
||||
import json
|
||||
|
||||
from sanic import response
|
||||
|
||||
from datasette.utils import CustomJSONEncoder
|
||||
from datasette.version import __version__
|
||||
import json
|
||||
|
||||
from .base import HASH_LENGTH, RenderMixin
|
||||
|
||||
|
||||
class IndexView(RenderMixin):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
from sanic.request import RequestParameters
|
||||
from .base import BaseView, DatasetteError, ureg
|
||||
import sqlite3
|
||||
import urllib
|
||||
|
||||
import jinja2
|
||||
from sanic.exceptions import NotFound
|
||||
from sanic.request import RequestParameters
|
||||
|
||||
from datasette.utils import (
|
||||
Filters,
|
||||
compound_keys_after_sql,
|
||||
|
|
@ -10,11 +14,10 @@ from datasette.utils import (
|
|||
path_from_row_pks,
|
||||
path_with_added_args,
|
||||
to_css_class,
|
||||
urlsafe_components,
|
||||
urlsafe_components
|
||||
)
|
||||
import sqlite3
|
||||
import jinja2
|
||||
import urllib
|
||||
|
||||
from .base import BaseView, DatasetteError, ureg
|
||||
|
||||
|
||||
class RowTableShared(BaseView):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue