Skip to content

Commit aca12a6

Browse files
author
Mohamed ElKalioby
committed
Allowing Kwargs Style
1 parent 582a248 commit aca12a6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

jsonLookup/has_lookup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def as_sql(self, compiler, connection):
1010
rhs, rhs_params = self.process_rhs(compiler, connection)
1111

1212
params = lhs_params + rhs_params
13-
lst=rhs_params[0].split("=")
13+
lst=rhs_params[0].replace("'","").replace('"','').split("=")
1414
lst[0]=lst[0].strip()
1515
lst[1]=lst[1].strip()
1616
if lst[1].isdigit():

jsonLookup/shas_lookup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def as_sql(self, compiler, connection):
1010
rhs, rhs_params = self.process_rhs(compiler, connection)
1111

1212
params = lhs_params + rhs_params
13-
lst=rhs_params[0].split("=")
13+
lst=rhs_params[0].replace("'","").replace('"','').split("=")
1414
lst[0]=lst[0].strip()
1515
lst[1]=lst[1].strip()
1616
return "JSON_EXTRACT(%s,'%s')= %s" %(lhs, lst[0],rhs),[lst[1]]

0 commit comments

Comments
 (0)