Skip to content

okak - #6

Open
ZhuchkaTriplesix wants to merge 12 commits into
Ilya_prfrom
master
Open

okak#6
ZhuchkaTriplesix wants to merge 12 commits into
Ilya_prfrom
master

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Collaborator

No description provided.

OrusskiyVR and others added 3 commits May 26, 2025 17:11
longtitude: Mapped[float] = mapped_column(Float, index=True, nullable=False)
connection_type: Mapped[str] = mapped_column(String, index=True, nullable=False)
power_kw: Mapped[int] = mapped_column(Integer, nullable=False) No newline at end of file
power_kw: Mapped[int] = mapped_column(__name_pos=Integer, nullable=True) No newline at end of file

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

__name_pos не обязательно указывать.
Я так понял, что не у всех зарядок указана мощность

longtitude: float
connection_type: str
power_kw: int No newline at end of file
power_kw: int | None = None

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

по умолчанию будет none, если не засунуть туда значение.

Comment thread server/station_service/src/stations.py Outdated

API_BASE_URL = "https://api.openchargemap.io/v3"
API_KEY = os.getenv("API_KEY")
API_KEY = "0693cf5e-35eb-460b-acb3-585ca9dd2547" #os.getenv("API_KEY")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

окак, было лучше

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

датакласс шутка?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

логгер можно выделить в миддлварю, чтобы постоянно не писать его

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