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

Return Structured Data from Chalicelib Files #6

Open
mark-meyer opened this issue Feb 22, 2023 · 1 comment
Open

Return Structured Data from Chalicelib Files #6

mark-meyer opened this issue Feb 22, 2023 · 1 comment

Comments

@mark-meyer
Copy link
Member

The lower-level libraries like chalicelib/responses.py return strings intended for end users. This make it difficult to customize the outgoing message for different routes.

Consider instead:

  • returning structured data (a class instance, dict, etc)
  • refactoring routes in app.py to assemble strings for particular uses.
@britt-monroe-carvana
Copy link
Contributor

britt-monroe-carvana commented Mar 22, 2023

  • What time of response is it sending, i.e. Facebook vs Website. - based on where it is called from
  • URL from Native Lands not to send in SMS (higher cost here) but possibly in Facebook Msg and Website
  • Extra information in a specific region.
  • process_query = return a dictionary with original query & list of places - all end points run through this
  • Can also return lists for different lands, i.e. multiple groups

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

2 participants