mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-02-01 04:14:24 +01:00
Fix issue with decoding metrics JSON
This commit is contained in:
@@ -49,7 +49,9 @@ class Metrics {
|
||||
difficulty: json['difficulty'] ?? "",
|
||||
success: json['success'],
|
||||
attempted: json['attempted'],
|
||||
successPercentage: json['success_percentage'].toDouble() ?? 0.0,
|
||||
successPercentage: (json['success_percentage'] != null)
|
||||
? json['success_percentage'].toDouble()
|
||||
: 0.0,
|
||||
cost: json['cost'] ?? "",
|
||||
runTime: json['run_time'] ?? "",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user