We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5196c0a commit 752f2a3Copy full SHA for 752f2a3
lunchable/plugins/app.py
@@ -232,10 +232,10 @@ def refresh(
232
msg = f"Model not supported by Lunchable App: {model.__name__}"
233
raise NotImplementedError(msg) from e
234
fetched_data = fetch_data_function()
235
- if isinstance(model, UserObject):
+ if isinstance(fetched_data, UserObject):
236
data_mapping = fetched_data
237
else:
238
- data_mapping = {item.id: item for item in fetched_data}
+ data_mapping = {item.id: item for item in fetched_data} # type: ignore[assignment]
239
setattr(self.data, attr_name, data_mapping)
240
return data_mapping
241
0 commit comments