diff --git a/actions.py b/actions.py index d71efe5..70456d0 100644 --- a/actions.py +++ b/actions.py @@ -16,6 +16,7 @@ def run_add(chat_id, text): if len(lines) < 2: return constants.ERROR_ADD_FORMAT core = lines[0].split(",") + print(core) if len(core) != 3: return constants.ERROR_ADD_FORMAT amount = core[1].strip() @@ -23,6 +24,7 @@ def run_add(chat_id, text): return constants.ERROR_PRECONDITION amount = float(amount) payer = core[2].strip().lower(), + print(payer) details = { "name": core[0].strip().lower(), "amount": amount, diff --git a/constants.py b/constants.py index 575ccfd..8ccff23 100644 --- a/constants.py +++ b/constants.py @@ -25,7 +25,7 @@ Bob John -Bob was gonna cab back with Mary but John asked if they could add a stop: +Bob was gonna cab back with Mary but John asked if they could drop him off along the way: /add Cab Ride, 42.50, Bob John, 7.50 Mary'''