Skip to content

Commit

Permalink
Merge pull request #10 from jamesridgway/james/settings-improvement
Browse files Browse the repository at this point in the history
Order controls for deck
  • Loading branch information
jamesridgway authored Jul 3, 2021
2 parents a273be5 + 753ce82 commit 1a8441a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions devdeck/settings/deck_settings.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import importlib
from operator import itemgetter


class DeckSettings:
def __init__(self, config):
self.config = config
self.config['settings']['controls'] = sorted(self.config['settings']['controls'], key=itemgetter('key'))

def serial_number(self):
return self.config['serial_number']
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
assertpy
cerberus
devdeck-core==1.0.6
devdeck-core==1.0.7
emoji
jsonschema
pillow
Expand Down

0 comments on commit 1a8441a

Please sign in to comment.