Skip to content

Commit 3c5ded0

Browse files
authored
Merge pull request #1363 from runhey/dev
Automated PR 2026.01.15
2 parents 711cc46 + 6a4ab0d commit 3c5ded0

24 files changed

+229
-175
lines changed

module/device/device.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ def click_record_check(self):
202202
count = {}
203203
for key in self.click_record:
204204
count[key] = count.get(key, 0) + 1
205-
count = sorted(count.items(), key=lambda item: item[1])
206-
if count[0][1] >= 12:
205+
count = sorted(count.items(), key=lambda item: item[1], reverse=True)
206+
if count[0][1] >= 10:
207207
logger.warning(f'Too many click for a button: {count[0][0]}')
208208
logger.warning(f'History click: {[str(prev) for prev in self.click_record]}')
209209
self.click_record_clear()
-6.49 KB
Binary file not shown.
-1.46 KB
Binary file not shown.
-1.41 KB
Binary file not shown.
-3.52 KB
Binary file not shown.
2.15 KB
Loading
1.44 KB
Loading
1.61 KB
Loading
1.63 KB
Loading
58 Bytes
Loading

0 commit comments

Comments
 (0)