-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/unused params #180
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
Fix/unused params #180
Conversation
…b-Back into fix/unused_params
removed unnecessary attr to mesh_component schema pull from latest next
adapt routes and schemas
renamed test
…ta_folder_path, add get method
src/opengeodeweb_back/data.py
Outdated
| @classmethod | ||
| def get(cls, data_id: str) -> "Data | None": |
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.
| @classmethod | |
| def get(cls, data_id: str) -> "Data | None": | |
| @staticmethod | |
| def get(data_id: str) -> "Data | None": |
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.
Les 2 fonctionnent, mais si on choisit d'utiliser @staticmethod, c'est un peu différent : fonction ne dépendant pas de la classe et il faut ré adapter les appels à la méthode get en précisant le model Data en paramètre
Je vais faire un commit avec les changements nécessaires
@BotellaA
changed classmethod to staticmethod in Data model renamed load function
…s/OpenGeodeWeb-Back into fix/unused_params
|
🎉 This PR is included in version 5.10.0-rc.9 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 5.10.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.