Skip to content

Commit 615e48c

Browse files
committed
Add method for serializing Q3 params
1 parent c7e0e29 commit 615e48c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

paramgenerator/generateparamsbi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ def serialize_q2(outdir, countries, post_day_ranges):
139139

140140
def serialize_q3(outdir, post_months):
141141
writer = ParamsWriter(outdir, "q3", ["year", "month"] )
142-
# TODO year, month
142+
for post_month in post_months:
143+
t = time.gmtime(post_month[0][0]/1000)
144+
writer.append([t.tm_year, t.tm_mon])
143145

144146
def serialize_q4(outdir, tagclasses, countries):
145147
writer = ParamsWriter(outdir, "q4", ["tagClass", "country"])

0 commit comments

Comments
 (0)