mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Show mutable DBs first in API explorer, closes #1918
This commit is contained in:
parent
6b47734c04
commit
5518397338
1 changed files with 2 additions and 0 deletions
|
|
@ -371,6 +371,8 @@ class ApiExplorerView(BaseView):
|
|||
"tables": tables,
|
||||
}
|
||||
)
|
||||
# Sort so that mutable databases are first
|
||||
databases.sort(key=lambda d: not self.ds.databases[d["name"]].is_mutable)
|
||||
return databases
|
||||
|
||||
async def get(self, request):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue