-
Notifications
You must be signed in to change notification settings - Fork 37
[ENG-5878] weather app template #103
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
Conversation
masenf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you deploy the app so we can test
| { | ||
| "name": "weatherstack_app", | ||
| "description": "A minimal weather app", | ||
| "demo_url": "https://company-dashboard-navy-book.reflex.run/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to make sure this is updated after deploying the app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup will change this today after re-deploy
| "access_key": self.api_key, | ||
| "query": self.city, | ||
| } | ||
| response = requests.get(WEATHERSTACK_API_URL, params=params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using a blocking call here is not ideal as it will block other users on the server until the request completes, if this request is slow (and note it has no timeout), the app performance could degrade across all users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this using httpx - I should point out this was entirely generated from the AI (I did not change the backend) so maybe something we need to look at for future generations if this kind of blocking good is not good practice
|
Seems like this is not passing CI |
|
PR #111 |
No description provided.