fossasia / susi_server

SUSI.AI server backend - the Artificial Intelligence server for personal assistants https://susi.ai
GNU Lesser General Public License v2.1
2.51k stars 1.08k forks source link

Arithmetic of numbers are not correct in http://api.asksusi.com but in localhost all working fine #54

Closed samsruti closed 7 years ago

samsruti commented 7 years ago

Actual Behavior Ask: 5+3 Response: Love you guys <3 that stream was awesome lol

Expected Behavior Ask: 5+3 Response: 8

API Console { "query": "5+3", "client_id": "aG9zdF8xMDEuNjMuMjUzLjkx", "query_date": "2016-12-28T20:22:56.720Z", "answer_date": "2016-12-28T20:22:59.394Z", "answer_time": 2674, "count": 1, "answers": [{ "data": [ { "text": "Love you guys <3 that stream was awesome lol", "0": "5+3", "1": "5+3", "timezoneOffset": "-330" }, {"text": "3 mins and you will see the fire"}, {"text": "I love you! <3"}, {"text": "1K!!! THE BIG 1K!! :O thank you all <3"}, {"text": "Day 5 of avoiding Passengers spoilers πŸš€: UNSUCCESSFUL 😑 thank you twitter"}, {"text": "Niggas really want you to believe Drakengard 3 is not a broken game"}, {"text": "atla[5] i love you <3"}, {"text": "|| <3 Love you too, Anna Banana"}, {"text": "did you know there are at least 3 fics of \"dio/bread\"? well, now you do"}, {"text": "\"Congratulations Team Fortress 3 on best debut\" I love you, Jeff Gerstmann"}, {"text": "γ€ζ™‚ε ±γ€‘γŠγ―γ‚ˆγ†γ”γ–γ„γΎγ™β˜€5:00にγͺγ‚ŠγΎγ—γŸγ€‚YOU ARE MY HEROにログむンしましょう!"}, {"text": "\"so what did you do in the 3 weeks off?\" oh you know, absolutely nothing"}, {"text": "When your toddler headbutts you.. 5 times.. in 2 hours πŸ™ƒ"}, {"text": "My SFV boycott continues. No Sagat, no Jerz. See you season 3."}, {"text": "2k17 πŸ˜€πŸ˜€πŸ˜€ 3 hari lagi. 2k16 thank you for all sweet sour memories ."}, {"text": "Rest in peace Carrie Fisher, you will be missed greatly <3"}, {"text": "3. lame jokes & puns i mean DADS. that's what they do best i tell you πŸ˜‚"}, {"text": "JIA// 3 MONTHS NALAMG KULITAN NA ULE SA BAKASYON πŸ˜‚HAHAHAHAHA MISS YOUπŸ’–"}, {"text": "you know you're out of shape when your mile drops from 4:58 to 5:45"} ], "metadata": {"count": 19}, "actions": [{ "type": "answer", "expression": "Love you guys <3 that stream was awesome lol" }] }], "session": {"identity": { "type": "host", "name": "", "anonymous": true }} }

samsruti commented 7 years ago

Thanks, It is resolved now :)