exporter.py 文件源码

python
阅读 43 收藏 0 点赞 0 评论 0

项目:Telebackup 作者: LonamiWebs 项目源码 文件源码
def get_previous_and_next_day(db, message_date):
        """Gets the previous and following saved days given the day in between in the database"""
        previous = db.query_message("where date < '{}' order by id desc"
                                    .format(message_date))
        following = db.query_message("where date >= '{}' order by id asc"
                                     .format(message_date+timedelta(days=1)))

        return Exporter.get_message_date(previous), Exporter.get_message_date(following)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号