Skip to content

Commit

Permalink
Displays more information about standing in current war.
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronTraas committed Jan 21, 2019
1 parent 52de541 commit 3dab597
Show file tree
Hide file tree
Showing 5 changed files with 304 additions and 198 deletions.
2 changes: 1 addition & 1 deletion crtools/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.10.9"
__version__ = "1.11.0"
3 changes: 3 additions & 0 deletions crtools/crtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@ def process_current_war(config, current_war):
current_war_processed['collectionEndTimeLabel'] = 'Complete'
current_war_processed['endLabel'] = '{} hours'.format(end_time_delta)

current_war_processed['clans'] = sorted(current_war_processed['clans'], key=lambda k: (k['wins'], k['crowns']), reverse=True)


return current_war_processed

def build_dashboard(config):
Expand Down
Loading

0 comments on commit 3dab597

Please sign in to comment.