X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=base_presence.py;h=612193e1df3b84f0ee8fc52b86ab5c94ce7ee38d;hb=822454f580c1ff9eb207b8da46cdfae24e30cde1;hp=f846e65bc921529229fd76b0784ad5450896b5e3;hpb=17e8082381dbbf691dfb19fb1b38a97e48d6ab87;p=python_utils.git diff --git a/base_presence.py b/base_presence.py index f846e65..612193e 100755 --- a/base_presence.py +++ b/base_presence.py @@ -230,9 +230,10 @@ class PresenceDetection(object): logger.debug(f'Seen {mac} ({mac_name}) at {location} since {ts}') tiebreaks[location] = ts - (most_recent_location, first_seen_ts) = dict_utils.item_with_max_value( - tiebreaks - ) + ( + 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