mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Sort databases on homepage by argument order - #591
Closes #585 - thanks, @rixx!
This commit is contained in:
parent
af2e6a5cf1
commit
908fc3999e
3 changed files with 3 additions and 5 deletions
|
|
@ -159,7 +159,7 @@ class Datasette:
|
|||
self.files = [MEMORY]
|
||||
elif memory:
|
||||
self.files = (MEMORY,) + self.files
|
||||
self.databases = {}
|
||||
self.databases = collections.OrderedDict()
|
||||
self.inspect_data = inspect_data
|
||||
for file in self.files:
|
||||
path = file
|
||||
|
|
|
|||
|
|
@ -97,8 +97,6 @@ class IndexView(BaseView):
|
|||
}
|
||||
)
|
||||
|
||||
databases.sort(key=lambda database: database["name"])
|
||||
|
||||
if as_format:
|
||||
headers = {}
|
||||
if self.ds.cors:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue