@@ -118,6 +118,8 @@ def _apply_eq(self, qb: QueryBuilder) -> obx_qb_cond:
118118 return qb .equals_string (self ._property_id , value , case_sensitive )
119119 elif isinstance (value , int ):
120120 return qb .equals_int (self ._property_id , value )
121+ elif isinstance (value , bytes ):
122+ return qb .equals_bytes (self ._property_id , value )
121123 else :
122124 raise Exception (f"Unsupported type for 'EQ': { type (value )} " )
123125
@@ -164,6 +166,8 @@ def _apply_gt(self, qb: QueryBuilder) -> obx_qb_cond:
164166 return qb .greater_than_int (self ._property_id , value )
165167 elif isinstance (value , float ):
166168 return qb .greater_than_double (self ._property_id , value )
169+ elif isinstance (value , bytes ):
170+ return qb .greater_than_bytes (self ._property_id , value )
167171 else :
168172 raise Exception (f"Unsupported type for 'GT': { type (value )} " )
169173
@@ -176,6 +180,8 @@ def _apply_gte(self, qb: QueryBuilder) -> obx_qb_cond:
176180 return qb .greater_or_equal_int (self ._property_id , value )
177181 elif isinstance (value , float ):
178182 return qb .greater_or_equal_double (self ._property_id , value )
183+ elif isinstance (value , bytes ):
184+ return qb .greater_or_equal_bytes (self ._property_id , value )
179185 else :
180186 raise Exception (f"Unsupported type for 'GTE': { type (value )} " )
181187
@@ -188,6 +194,8 @@ def _apply_lt(self, qb: QueryBuilder) -> obx_qb_cond:
188194 return qb .less_than_int (self ._property_id , value )
189195 elif isinstance (value , float ):
190196 return qb .less_than_double (self ._property_id , value )
197+ elif isinstance (value , bytes ):
198+ return qb .less_than_bytes (self ._property_id , value )
191199 else :
192200 raise Exception ("Unsupported type for 'LT': " + str (type (value )))
193201
@@ -200,6 +208,8 @@ def _apply_lte(self, qb: QueryBuilder) -> obx_qb_cond:
200208 return qb .less_or_equal_int (self ._property_id , value )
201209 elif isinstance (value , float ):
202210 return qb .less_or_equal_double (self ._property_id , value )
211+ elif isinstance (value , bytes ):
212+ return qb .less_or_equal_bytes (self ._property_id , value )
203213 else :
204214 raise Exception (f"Unsupported type for 'LTE': { type (value )} " )
205215
0 commit comments