Skip to content

Commit

Permalink
All unit tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
wpfl-dbt committed Jan 7, 2025
1 parent 7b0fb5c commit 37ea688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/matchbox/client/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _check_range(arr: pa.Array, min: float, max: float) -> bool:
target_type=pa.uint8(), allow_float_truncate=True
),
)
value.set_column(
value = value.set_column(
i=value.schema.get_field_index("probability"),
field_="probability",
column=probability_uint8,
Expand Down
2 changes: 1 addition & 1 deletion src/matchbox/server/postgresql/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,5 +285,5 @@ class Probabilities(CountMixin, MBDB.MatchboxBase):

# Constraints
__table_args__ = (
CheckConstraint("probability BETWEEN 0 AND 1", name="valid_probability"),
CheckConstraint("probability BETWEEN 0 AND 100", name="valid_probability"),
)

0 comments on commit 37ea688

Please sign in to comment.