-
Notifications
You must be signed in to change notification settings - Fork 1
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
Endpoint summary #12
Endpoint summary #12
Conversation
тоже удаляем такие документы. | ||
создать на коллекции уникальный индекс, который привязан к уникальному полю документа. В нашем | ||
случае им является поле `CID`. | ||
* |
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.
.
molecad/api_db.py
Outdated
# TODO | ||
# settings = Settings(_env_file="prod.env", _env_file_encoding="utf-8") |
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.
хмм
molecad/api_db.py
Outdated
return list(cursor) | ||
|
||
|
||
def summary_search(smiles) -> List[Summary]: |
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.
def summary_search(smiles) -> List[Summary]: | |
def summary_search(smiles: str) -> List[Summary]: |
molecad/downloader_types.py
Outdated
from enum import Enum | ||
from typing import TypeVar | ||
import enum | ||
import typing as t |
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.
Почему?
Это может запутать в будущем, лучше не делай так
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.
ок, просто увидела где-то, решила попробовать, но мне не понравилось
molecad/settings.py
Outdated
@@ -19,7 +19,7 @@ class Settings(BaseSettings): | |||
split_dir = Field("./data/split", env="SPLIT_DIR") | |||
|
|||
component_name = "molecad" | |||
api_version: str = "/v0" | |||
api_version: str = "/v1" |
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.
Мы, вроде, всё ещё api v0 делаем
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.
ну у тебя так на конфлюэнсе написано в названии ручки
ручка
/v1/compound/summary