Skip to content

Commit 7f882e3

Browse files
committed
Fixed constant parameter in q19
1 parent b937907 commit 7f882e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paramgenerator/generateparamsbi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,12 @@ def serialize_q18(post_weeks):
219219
writer.append([str(week)], [count])
220220

221221
def serialize_q19(tagclasses):
222+
PERS_DATE=datetime.strptime("1989-1-1","%Y-%m-%d")
222223
writer = ParamsWriter("q19", ["date","tagClass1","tagClass2"])
223224
for ix in range(0,len(tagclasses)):
224225
tag_class_a, count_a = tagclasses[ix]
225226
for tag_class_b, count_b in tagclasses[ix+1:]:
226-
writer.append([str("1989-1-1"),tag_class_a, tag_class_b], [count_a, count_b])
227+
writer.append([str(format_date(PERS_DATE)),tag_class_a, tag_class_b], [count_a, count_b])
227228

228229
def serialize_q20():
229230
writer = ParamsWriter("q20", [])

0 commit comments

Comments
 (0)