Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

context, timezone json.dumps issue #95

Open
benkelaci opened this issue Jul 3, 2017 · 0 comments
Open

context, timezone json.dumps issue #95

benkelaci opened this issue Jul 3, 2017 · 0 comments

Comments

@benkelaci
Copy link

Do you want to request a feature, report a bug, or ask a question about wit?
Bug
What is the current behavior?
If I tried the pywit message function with this context:
{"timezone":"America/Los_Angeles"} - the generated url (because of json.dumps) contains slashes ''. And it seems does not work the timezone calculation for this type of text: call me at 8 (so without AM or PM).

I changed temporary the wit.py line 76. from this:
params['context'] = json.dumps(context)
to this:
params['context'] = context

Maybe I used a wrong format for context. Can you deliver me a better one or explain why with json.dumps(context) make a wrong url request?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant