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

Hw #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Hw #2

wants to merge 3 commits into from

Conversation

literid
Copy link

@literid literid commented Mar 12, 2024

No description provided.

Copy link

@belou5ov belou5ov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Отличная работа!

Comment on lines +28 to +36
max_size = os.getenv("OVERPASS_QUERY_RAM_MAXSIZE", 2000000000)
timeout = os.getenv("OVERPASS_TIMEOUT", 15)
base_url = os.getenv("OVERPASS_API_URL")

if not base_url:
raise HTTPException(
status_code=500,
detail="OVERPASS_API_URL is not set in the environment variables",
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут при каждом вызове функции будем дергать os.getenv. Лучше это сделать снаружи функции.

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

Successfully merging this pull request may close these issues.

2 participants