rewrite: More restructuring.

This commit is contained in:
2022-12-23 07:19:35 +02:00
parent 1cef97cdd4
commit ee1abcacea
26 changed files with 443 additions and 39 deletions

View File

@@ -0,0 +1,27 @@
import datetime as dt
from stats import StatsCard
card = StatsCard(
(21, 123),
(3600, 5 * 24 * 3600, 1.5 * 24 * 3600, 100 * 24 * 3600),
50,
[(1, 3), (7, 8), (10, 10), (12, 16), (18, 25), (27, 31)],
date=dt.datetime(2022, 1, 1),
# draft=True
)
image = card.draw()
image.save('statscard_alt.png', dpi=(150, 150))
card = StatsCard(
(21, 123),
(3600, 5 * 24 * 3600, 1.5 * 24 * 3600, 100 * 24 * 3600),
50,
[(1, 3), (7, 8), (10, 10), (12, 16), (18, 25), (27, 31)],
date=dt.datetime(2022, 2, 1),
# draft=True
)
image = card.draw()
image.save('statscard.png', dpi=(150, 150))