mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
/-/databases and homepage maintain connection order, closes #1216
This commit is contained in:
parent
03b35d70e2
commit
807de378d0
4 changed files with 7 additions and 6 deletions
|
|
@ -126,7 +126,8 @@ def make_app_client(
|
|||
for extra_filename, extra_sql in extra_databases.items():
|
||||
extra_filepath = os.path.join(tmpdir, extra_filename)
|
||||
sqlite3.connect(extra_filepath).executescript(extra_sql)
|
||||
files.append(extra_filepath)
|
||||
# Insert at start to help test /-/databases ordering:
|
||||
files.insert(0, extra_filepath)
|
||||
os.chdir(os.path.dirname(filepath))
|
||||
config = config or {}
|
||||
for key, value in {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue