[object Object]

← back to Exo

dashboard fix int64

28de4fd7518232cc8e5556c57d88c927970b40cf · 2024-11-25 13:46:42 +0400 · Alex Cheema

Files touched

Diff

commit 28de4fd7518232cc8e5556c57d88c927970b40cf
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Mon Nov 25 13:46:42 2024 +0400

    dashboard fix int64
---
 extra/dashboard/dashboard.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/extra/dashboard/dashboard.py b/extra/dashboard/dashboard.py
index 8697d169..e8101754 100644
--- a/extra/dashboard/dashboard.py
+++ b/extra/dashboard/dashboard.py
@@ -311,12 +311,12 @@ class PackageSizeTracker:
         if not df_size.empty:
             latest = df_size.iloc[-1]
             previous = df_size.iloc[-2] if len(df_size) > 1 else latest
-            size_change = latest['total_size_mb'] - previous['total_size_mb']
+            size_change = float(latest['total_size_mb'] - previous['total_size_mb'])
             latest_data.update({
                 'timestamp': latest['timestamp'].isoformat(),
                 'commit_hash': latest['commit_hash'],
                 'commit_url': latest['commit_url'],
-                'total_size_mb': latest['total_size_mb'],
+                'total_size_mb': float(latest['total_size_mb']),
                 'size_change_mb': size_change,
                 'packages': latest.get('packages', [])
             })
@@ -324,7 +324,7 @@ class PackageSizeTracker:
         if not df_lines.empty:
             latest = df_lines.iloc[-1]
             previous = df_lines.iloc[-2] if len(df_lines) > 1 else latest
-            linecount_change = latest['total_lines'] - previous['total_lines']
+            linecount_change = int(latest['total_lines'] - previous['total_lines'])
             if not latest_data:  # Only add timestamp and commit info if not already added
                 latest_data.update({
                     'timestamp': latest['timestamp'].isoformat(),
@@ -332,7 +332,7 @@ class PackageSizeTracker:
                     'commit_url': latest['commit_url'],
                 })
             latest_data.update({
-                'total_lines': latest['total_lines'],
+                'total_lines': int(latest['total_lines']),
                 'linecount_change': linecount_change
             })
 

← e3dc3b20 include total line count in dashboard  ·  back to Exo  ·  require exact match on response from llms in integration tes 37056403 →