File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -323,8 +323,13 @@ def main(argv=None):
323
323
324
324
#post_lower_threshold = (total_posts/(week_posts[len(week_posts)-1][0]/7/4))*0.8
325
325
#post_upper_threshold = (total_posts/(week_posts[len(week_posts)-1][0]/7/4))*1.2
326
- post_lower_threshold = (total_posts / (len (week_posts )/ 4 ))* 0.8
327
- post_upper_threshold = (total_posts / (len (week_posts )/ 4 ))* 1.2
326
+ non_empty_weeks = len (week_posts )
327
+ for ix in range (0 ,len (week_posts )):
328
+ if week_posts [ix ][1 ]== 0 :
329
+ non_empty_weeks -= 1
330
+
331
+ post_lower_threshold = (total_posts / (non_empty_weeks / 4 ))* 0.8
332
+ post_upper_threshold = (total_posts / (non_empty_weeks / 4 ))* 1.2
328
333
post_months = post_month_params (week_posts , post_lower_threshold , post_upper_threshold )
329
334
330
335
serialize_q2 (country_sets , post_day_ranges )
You can’t perform that action at this time.
0 commit comments