From 9e714d032b8d44aa9f5865c019d62befa0fa9978 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sun, 26 Nov 2023 15:05:19 -0800 Subject: [PATCH] Fix Khoj telemetry server. Add server_version column --- src/telemetry/telemetry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telemetry/telemetry.py b/src/telemetry/telemetry.py index 1a2a8f1ed..fabaafa0e 100644 --- a/src/telemetry/telemetry.py +++ b/src/telemetry/telemetry.py @@ -47,7 +47,7 @@ def v1_telemetry(telemetry_data: List[Dict[str, str]]): # Create a table if it doesn't exist cur.execute( - """CREATE TABLE IF NOT EXISTS usage (id INTEGER PRIMARY KEY, time TIMESTAMP, type TEXT, server_id TEXT, os TEXT, api TEXT, client TEXT)""" + """CREATE TABLE IF NOT EXISTS usage (id INTEGER PRIMARY KEY, time TIMESTAMP, type TEXT, server_id TEXT, os TEXT, api TEXT, client TEXT, server_version TEXT)""" ) # Log telemetry data