Skip to content

Commit 5844ff0

Browse files
committed
Fix skills test
1 parent 007a0bf commit 5844ff0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mindsdb_sdk/skills.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def __repr__(self):
5151
@classmethod
5252
def from_json(cls, json: dict):
5353
if json['type'] == 'sql':
54-
return SQLSkill.from_json(json)
55-
raise NotImplementedError(f'Unknown skill type: {json["type"]}')
54+
return SQLSkill(json['name'], json['params']['tables'], json['params']['database'])
55+
return Skill(json['name'], json['type'], json['params'])
5656

5757

5858
class SQLSkill(Skill):

0 commit comments

Comments
 (0)