duration fix

pull/685/head
meisnate12 3 years ago
parent 3d53500e0a
commit cd209cd31b

@ -1 +1 @@
1.15.1-develop34
1.15.1-develop35

@ -1640,7 +1640,7 @@ class CollectionBuilder:
or (attribute in plex.tag_attributes and modifier in [".count_gt", ".count_gte", ".count_lt", ".count_lte"]):
return util.parse(self.Type, final, data, datatype="int")
elif attribute in plex.float_attributes and modifier in [".gt", ".gte", ".lt", ".lte"]:
return util.parse(self.Type, final, data, datatype="float", minimum=0, maximum=10)
return util.parse(self.Type, final, data, datatype="float", minimum=0, maximum=None if attribute == "duration" else 10)
elif attribute in plex.boolean_attributes + boolean_filters:
return util.parse(self.Type, attribute, data, datatype="bool")
else:

Loading…
Cancel
Save