def get_hot_stories(hot_eligible_age = timedelta(hours = 48)):
    hot_avg = general.get_key_from_stat('hot_avg')['value']
    stories = dbsession.query(Submission).options(joinedload('submitter')).filter(Submission.deleted == False).filter(Submission.added_on > (general.now_in_utc() - hot_eligible_age)).filter(Submission.hot_window_score > hot_avg).order_by(Submission.hot_window_score.desc())
    return stories
Get a story list that is suitable for display as "hot".
dataset/ETHPy150Open sjuxax/raggregate/raggregate/queries/hotness.py/get_hot_stories