Skip to content

Commit eeb669d

Browse files
committed
Add aditional parameter for q2
1 parent fe2a916 commit eeb669d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paramgenerator/generateparamsbi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ def serialize_q1(post_weeks):
126126
writer.append([str(week)], [count])
127127

128128
def serialize_q2(country_sets, post_day_ranges):
129-
writer = ParamsWriter("q2", ["date1","date2","countries","endDate"])
129+
writer = ParamsWriter("q2", ["date1","date2","countries","endDate","messageThreshold"])
130130
random.seed(1988+2)
131131
for country_set, count_country in country_sets:
132132
for day_range, count_post in post_day_ranges:
133133
if random.randint(0,len(country_sets) + len(post_day_ranges)) == 0:
134-
writer.append([str(day_range[0]), str(day_range[1]), ";".join(country_set), str(format_date(END_DATE))], [count_post,count_post,count_country,333])
134+
writer.append([str(day_range[0]), str(day_range[1]), ";".join(country_set), str(format_date(END_DATE)),str(20)], [count_post,count_post,count_country,333])
135135

136136
def serialize_q3(post_months):
137137
writer = ParamsWriter("q3", ["range1Start","range1End","range2Start","range2End"])

0 commit comments

Comments
 (0)