diff options
Diffstat (limited to 'monkey')
-rwxr-xr-x | monkey/action.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/monkey/action.py b/monkey/action.py index 121dced..bb046da 100755 --- a/monkey/action.py +++ b/monkey/action.py @@ -49,13 +49,13 @@ class Action: _packet_action_map = { 'ins': lambda packet, time, code: Action('insert', time, offset=packet['off'], text=packet['txt']), - 'rm': lambda packet, time, code: Action('remove', time, offset=packet['off'], text=code[packet['off']:packet['off']+packet['len']]), - 'slv': lambda packet, time, code: Action('solve', time, text=packet['qry']), - 'slva': lambda packet, time, code: Action('solve_all', time, text=packet['qry']), - 'nxt': lambda packet, time, code: Action('next', time), - 'stp': lambda packet, time, code: Action('stop', time), + 'rm': lambda packet, time, code: Action('remove', time, offset=packet['off'], text=packet['txt']), 'tst': lambda packet, time, code: Action('test', time, total=packet['tot'], passed=packet['pas']), 'hnt': lambda packet, time, code: Action('hint', time) + 'slva': lambda packet, time, code: Action('solve_all', time, text=packet['qry']), + 'prolog_query': lambda packet, time, code: Action('prolog_query', time, text=packet['qry']), + 'prolog_next': lambda packet, time, code: Action('next', time), + 'prolog_end': lambda packet, time, code: Action('stop', time), } # parse log from database into a list of actions, cleaning up some fluff. # ignore non-text actions (queries and tests) |