Skip to content

Commit

Permalink
fix(upsertEdge): fix string formatting for json.
Browse files Browse the repository at this point in the history
  • Loading branch information
parkererickson-tg committed Feb 5, 2024
1 parent ee05aa3 commit 0d9e0eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyTigerGraph/pyTigerGraphEdge.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,11 @@ def _dumps(data) -> str:
for v3 in v2:
if c3 > 0:
ret += ","
ret += '"' + k2 + '":' + json.dumps(v3)
ret += '"' + json.dumps(k2) + '":' + json.dumps(v3)
c3 += 1
c2 += 1
else:
ret += '"' + k1 + '":' + _dumps(data[k1])
ret += '"' + json.dumps(k1) + '":' + _dumps(data[k1])
c1 += 1
return "{" + ret + "}"

Expand Down

0 comments on commit 0d9e0eb

Please sign in to comment.