2 parents 506e1e2 + 95e4ebb commit a461eefCopy full SHA for a461eef
1 file changed
backend/app/services/vcelldb_service.py
@@ -134,6 +134,15 @@ async def fetch_biomodels(
134
# Extract biomodels list (assuming API returns a list directly)
135
biomodels = raw_data if isinstance(raw_data, list) else raw_data.get("data", [])
136
137
+ # The legacy VCell API has a bug where, for a model shared with several
138
+ # people, groupUsers repeats the caller's own name once per share instead
139
+ # of listing the actual users it's shared with. Dedupe here so at least
140
+ # we don't surface the repeated names to the frontend.
141
+ for model in biomodels:
142
+ group_users = model.get("groupUsers")
143
+ if group_users:
144
+ model["groupUsers"] = list(dict.fromkeys(group_users))
145
+
146
# Build response with metadata
147
return {
148
"search_params": params_dict,
0 commit comments