def daily_content_report(): msg1 = make_panel('Usernames of people asking 3 or more questions', users_asking_questions_more_than_or_equal_to(3)) msg2 = make_panel('Usernames of people who have been asked 3 or more questions', users_being_asked_questions_more_than_or_equal_to(3)) msg3 = make_panel('Links of top 20 questions with the most (real) upvotes', questions_with_most_upvotes(20)) msg4 = make_panel('Usernames of top 20 people with the highest increase' ' in follows (real follows)', users_with_highest_increase_in_follows(20)) msg5 = make_panel('Links of top 20 questions with the highest likes (real)', questions_with_highest_likes(20)) msg6 = make_panel('Links of top 20 questions with the highest comments (real)', questions_with_highest_comments(20)) msg7 = make_panel("Question askers for Jatin Sapru: ", question_askers_for_sapru()) body = add_style() + msg1 + msg2 + msg3 + msg4 + msg5 + msg6 + msg7 admin_email.content_report(config.DAILY_CONTENT_MAIL_RECIPIENTS, 'Daily Report', body)
def intra_day_content_report(interval): msg1 = make_panel('New registrations (celeb and non-celeb) in last 12 hours Source ' '& number of registrations', new_registrations(interval)) msg2 = make_panel('No. of questions asked (excluding those from the dashboard)', count_of_question_asked(interval)) msg3 = make_panel('Videos uploaded (celeb and non-celeb) with link', videos_uploaded(interval)) body = add_style() + msg1 + msg2 + msg3 admin_email.content_report(config.DAILY_CONTENT_MAIL_RECIPIENTS, 'Twice a day Report', body)