mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(sqllab): access legacy kv record (#34411)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user