state.poll
state.poll
High level poll action decisions.
Decide which model operation to execute based on triggers and keyboard actions.
ACTION_GEO_RECHECK = 'geo_recheck'
module-attribute
ACTION_CLEAR_CACHE = 'clear_cache'
module-attribute
ACTION_CACHE_TERMINAL = 'cache_terminal'
module-attribute
ACTION_NORMAL_POLL = 'normal_poll'
module-attribute
RECHECK_TRIGGERS = {'menu_recheck_geoip', 'btn_check_databases'}
module-attribute
PollDecision
dataclass
Describe which poll action to execute.
Source code in state/poll.py
20 21 22 23 24 | |
_extract_key_action(key_action)
Extract action string from key_action store payload.
Source code in state/poll.py
27 28 29 30 31 32 | |
decide_poll_action(*, trigger, key_action)
Decide which high level poll action to execute.
Handles direct menu clicks and keyboard actions. Otherwise returns normal_poll.
Source code in state/poll.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |