You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't use direct comparisons with database fields in computed properties
217
-
Convert to Python values first using float(), int(), str()
218
-
Use property() function instead of @jsonapi_attr for computed properties
219
-
Always add error handling fortype conversions
215
+
*Don't use direct comparisons with database fields in computed properties
216
+
*Convert to Python values first using float(), int(), str()
217
+
*Use property() function instead of @jsonapi_attr for computed properties
218
+
*Always add error handling for type conversions
220
219
221
220
### Adding events
222
221
LogicBank rules are the preferred approach to logic, but you will sometimes need to add events. This is done in `logic/declare_logic.py` (important: the function MUST come first):
0 commit comments