1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-10 02:34:51 +00:00

fix(momotalk): correct sort switch

This commit is contained in:
2023-12-23 17:23:40 +08:00
parent 107392a900
commit 41e2d188b9
4 changed files with 17 additions and 17 deletions
+3 -3
View File
@@ -19,8 +19,8 @@ SWITCH_UNREAD.add_state("on", UNREAD_ON)
SWITCH_UNREAD.add_state("off", UNREAD_OFF)
SWITCH_SORT = Switch("Sort_switch")
SWITCH_SORT.add_state("on", SORT_ON)
SWITCH_SORT.add_state("off", SORT_OFF)
SWITCH_SORT.add_state("ascending", SORT_ASCENDING)
SWITCH_SORT.add_state("descending", SORT_DESCENDING)
"""Required for template matching as reply and story
button can be found in different locations"""
@@ -145,7 +145,7 @@ class MomoTalkUI(UI):
"""
if self.match_color(FIRST_UNREAD, threshold=80) and self.select_then_disappear(FIRST_UNREAD, SELECT_STUDENT, force_select=True):
return True
logger.warn("No students available for interaction")
logger.warning("No students available for interaction")
return False
def chat(self):