Skip to content

Commit

Permalink
Remove trailing comma after null
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Apr 24, 2021
1 parent 7bb0589 commit 3dd2d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brewpiJson.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def addRow(jsonFileName, row, tiltColor = None, iSpindel = None):
# Write iSpindel values
elif iSpindel:
if row['spinSG'] is None:
jsonFile.write(",null,")
jsonFile.write(",null")
else:
jsonFile.write(",{\"v\":" + str(row['spinSG']) + "}")

Expand Down

0 comments on commit 3dd2d27

Please sign in to comment.