mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
sort order needs also change in basic controller for existing data
This commit is contained in:
parent
9ac0141e4d
commit
d63bbbb887
2 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
__version__ = "4.0.5.a8"
|
||||
__version__ = "4.0.5.a9"
|
||||
__codename__ = "Spring Break"
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ class BasicController:
|
|||
logging.info("{} Load ".format(self.name))
|
||||
with open(self.path) as json_file:
|
||||
data = json.load(json_file)
|
||||
data['data'].sort(key=lambda x: x.get('name').upper())
|
||||
|
||||
for i in data["data"]:
|
||||
self.data.append(self.create(i))
|
||||
|
|
Loading…
Reference in a new issue