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

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


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

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

    fix(sqllab): access legacy kv record (#34411)
    
    (cherry picked from commit 762a11b0bb6ae603a7111620524f447babae2f5b)
---
 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