diff --git a/solar_edge.py b/solar_edge.py index c39daba..5defd40 100755 --- a/solar_edge.py +++ b/solar_edge.py @@ -52,8 +52,8 @@ image = Image.open(bundle_dir + "/" + infile) font = ImageFont.truetype(bundle_dir + "/" + font_face, 19) draw = ImageDraw.Draw(image) -draw.text((xpos, line1), str(co2)+" lbs", font=font, fill=fill_color) -draw.text((xpos, line2), str(trees), font=font, fill=fill_color) +draw.text((xpos, line1), "{:,} lbs".format(co2) , font=font, fill=fill_color) +draw.text((xpos, line2), "{:,}".format(trees), font=font, fill=fill_color) image.save(outfile)