theodotus commited on
Commit
d51055e
·
1 Parent(s): 2de3cd4

dict_max -> max_id

Browse files
Files changed (1) hide show
  1. utils.py +2 -1
utils.py CHANGED
@@ -88,4 +88,5 @@ class Test:
88
  @staticmethod
89
  def dict_max(dict):
90
  key = max(dict, key=dict.get)
91
- return key
 
 
88
  @staticmethod
89
  def dict_max(dict):
90
  key = max(dict, key=dict.get)
91
+ max_key_index = list(dict.keys()).index(key)
92
+ return max_key_index