This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 762a11b0bb fix(sqllab): access legacy kv record (#34411)
762a11b0bb is described below

commit 762a11b0bb6ae603a7111620524f447babae2f5b
Author: JUST.in DO IT <[email protected]>
AuthorDate: Thu Jul 31 04:58:10 2025 -0700

    fix(sqllab): access legacy kv record (#34411)
---
 superset/commands/sql_lab/permalink/get.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/commands/sql_lab/permalink/get.py 
b/superset/commands/sql_lab/permalink/get.py
index b6786e0e4d..0ae510bda0 100644
--- a/superset/commands/sql_lab/permalink/get.py
+++ b/superset/commands/sql_lab/permalink/get.py
@@ -42,7 +42,7 @@ class GetSqlLabPermalinkCommand(BaseSqlLabPermalinkCommand):
     def run(self) -> Optional[SqlLabPermalinkValue]:
         self.validate()
         if self.key.startswith("kv:"):
-            id = int(self.key[3])
+            id = int(self.key[3:])
             try:
                 kv = 
db.session.query(models.KeyValue).filter_by(id=id).scalar()
                 if not kv:

Reply via email to