Skip to content

Commit 927d7f9

Browse files
committed
Fix querying relation values with non-int PK
1 parent bd60603 commit 927d7f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ def get(self, dataset, id):
652652
except:
653653
continue
654654
result = data_service.index(
655-
get_identity(), translator, table, None, crs, '[["%s", "=", %s]]' % (fk_field_name, id)
655+
get_identity(), translator, table, None, crs, '[["%s", "=", "%s"]]' % (fk_field_name, id)
656656
)
657657
ret[table] = {"fk": fk_field_name, "features": result['feature_collection']['features'] if 'feature_collection' in result else []}
658658
if sortcol:

0 commit comments

Comments
 (0)