kopia lustrzana https://github.com/simonw/datasette
Show mutable DBs first in API explorer, closes #1918
rodzic
6b47734c04
commit
5518397338
|
@ -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):
|
||||
|
|
Ładowanie…
Reference in New Issue