Skip to content

Commit 0824738

Browse files
committed
use imgkit.from_string instead
1 parent 3b364dd commit 0824738

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

assets/generate_badge.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,4 @@
2222

2323
print("generated html line: ", ret)
2424

25-
with open("test.html", "w") as f:
26-
f.write(ret)
27-
28-
with open('test.svg', "w") as ff:
29-
imgkit.from_file(ff, 'test.html')
25+
imgkit.from_string(ret, "test.svg")

0 commit comments

Comments
 (0)