projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Optionally surface exceptions that happen under executors by reading
[python_utils.git]
/
base_presence.py
diff --git
a/base_presence.py
b/base_presence.py
index f846e65bc921529229fd76b0784ad5450896b5e3..612193e1df3b84f0ee8fc52b86ab5c94ce7ee38d 100755
(executable)
--- 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
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
bonus = credit
v = votes.get(most_recent_location, 0)
votes[most_recent_location] = v + bonus