From 0a8f2fbe750d9d9148c089537a28e52e5a55912e Mon Sep 17 00:00:00 2001 From: kikris Date: Sun, 24 Nov 2024 09:02:58 +0100 Subject: [PATCH] Let call percent take int calls --- bifrost_chewbbaca/datadump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bifrost_chewbbaca/datadump.py b/bifrost_chewbbaca/datadump.py index d005126..e17dd27 100755 --- a/bifrost_chewbbaca/datadump.py +++ b/bifrost_chewbbaca/datadump.py @@ -11,7 +11,7 @@ def call_percent(calls): return round( - len([x for x in calls if x.isdigit() or x.startswith("INF")]) + len([x for x in calls if isinstance(x,int) or x.isdigit() or x.startswith("INF")]) / len(calls) * 100, 2,