Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@ werkzeug==3.1.8
# flask
# flask-cors

opengeodeweb-microservice==1.*,>=1.1.3
3 changes: 3 additions & 0 deletions src/opengeodeweb_back/utils_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from .geode_objects import geode_objects
from .geode_objects.geode_model import GeodeModel
from .geode_objects.geode_object import GeodeObject
from .geode_objects.geode_vertex_set import GeodeVertexSet


def increment_request_counter(current_app: flask.Flask) -> None:
Expand Down Expand Up @@ -312,6 +313,8 @@ def save_all_viewables_and_return_info(
"binary_light_viewable": binary_light_viewable.decode("utf-8"),
"geode_object_type": data.geode_object,
}
if isinstance(geode_object, GeodeVertexSet):
response["nb_vertices"] = geode_object.vertex_set.nb_vertices()
if isinstance(geode_object, GeodeModel):
response |= model_components(data.id, geode_object, data.viewable_file)
return response
Expand Down
Loading