Skip to content

Commit 752f2a3

Browse files
committed
🐛 app bug
1 parent 5196c0a commit 752f2a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lunchable/plugins/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ def refresh(
232232
msg = f"Model not supported by Lunchable App: {model.__name__}"
233233
raise NotImplementedError(msg) from e
234234
fetched_data = fetch_data_function()
235-
if isinstance(model, UserObject):
235+
if isinstance(fetched_data, UserObject):
236236
data_mapping = fetched_data
237237
else:
238-
data_mapping = {item.id: item for item in fetched_data}
238+
data_mapping = {item.id: item for item in fetched_data} # type: ignore[assignment]
239239
setattr(self.data, attr_name, data_mapping)
240240
return data_mapping
241241

0 commit comments

Comments
 (0)