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
I've been making a lot of progress using this fine package. Thanks again for your guidance earlier.
I'm trying to use yadcf_range_number and am seeing self.error = 'a float is required' in the output_result() call. Upon investigation, found the exception inside of _set_yadcf_data during the call to math.floor(v[0]), as the return from .add_columns() above returned (None, None).
I do see a test for yadcf_range_slider for Integer in tests, but haven't tried to reproduce the testing environment for Float. But given where this is occurring doesn't seem like this should make a difference Integer vs. Float
Am I doing something wrong, or is this a bug?
The text was updated successfully, but these errors were encountered:
It dawned on me that the all_columns call is determining the min and max based on my query. If so this doesn't handle my use case. My initial query returns no rows unless one of the other filters is activated, therefore the (None, None) response.
In any case, I think the package should allow the caller to supply the yadcf_data_x values.
I'll do some more investigation if I can monkey patch something, or put in a PR with this capability.
I've been making a lot of progress using this fine package. Thanks again for your guidance earlier.
I'm trying to use
yadcf_range_number
and am seeingself.error = 'a float is required'
in theoutput_result()
call. Upon investigation, found the exception inside of_set_yadcf_data
during the call tomath.floor(v[0])
, as the return from.add_columns()
above returned(None, None)
.sqlalchemy-datatables/datatables/datatables.py
Line 79 in 049ab5f
Relevant code
model snippet
(inside of view function)
Checked https://docs.sqlalchemy.org/en/13/orm/query.html#sqlalchemy.orm.query.Query.add_columns and don't see what
add_columns()
should be returning.I do see a test for yadcf_range_slider for Integer in
tests
, but haven't tried to reproduce the testing environment for Float. But given where this is occurring doesn't seem like this should make a difference Integer vs. FloatAm I doing something wrong, or is this a bug?
The text was updated successfully, but these errors were encountered: