summaryrefslogtreecommitdiff
path: root/monkey
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-10-05 19:29:15 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-10-05 19:29:15 +0200
commit4586cb0e9d6cc862176314dcaa29edfea3c8eb4d (patch)
treebf6270ada1a3529444395a58f50fe08bc0f4c8ae /monkey
parent3f54d449c4ebad07ddf4e8018c5ee0f0a4b00cd5 (diff)
Update actions
Diffstat (limited to 'monkey')
-rwxr-xr-xmonkey/action.py10
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)