- location = dict_utils.key_with_min_value(tiebreaks)
- v = votes.get(location, 0)
- votes[location] = v + credit
- logger.debug('{name}: {location} gets {credit} votes.')
+
+ (most_recent_location, first_seen_ts) = dict_utils.item_with_max_value(tiebreaks)
+ bonus = credit
+ v = votes.get(most_recent_location, 0)
+ votes[most_recent_location] = v + bonus
+ logger.debug(f'{name}: {location} gets {bonus} votes.')