Skip to content

Commit

Permalink
fix: int insteadi of flota for num_ attr
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrckd committed Dec 20, 2024
1 parent 933e844 commit 38c588a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def to_table_init(self, db: Session) -> dict:
if dataset.has_output:
df = pd.read_json(StringIO(dataset.df))
obj["num_try"] = dataset.size
obj["num_success"] = float(df["output"].count())
obj["num_success"] = int(df["output"].count())

# Handle Results
results = []
Expand Down

0 comments on commit 38c588a

Please sign in to comment.