Mmrz-Sync.py 文件源码

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

项目:Mmrz-Sync 作者: zhanglintc 项目源码 文件源码
def set_last_import_time_int(self):
        self.load_pkl()
        self.pkl["last_import_time_int"] = int(time.time())
        self.dump_pkl()

# pkl data format:
# pkl = {   
#     book_name: str,
#     total_lines: int,
#     last_import_time: str,
#     last_import_time_int: int,
# }

# Refer to: http://stackoverflow.com/questions/16865997/python-bottle-module-causes-error-413-request-entity-too-large
# There was a bug:
# If a client post something with a very large parameter, it will be encountered a "broken pipe" problem.
# The line below can change the Bottle's acceptable max-size of request.
# So this bug is no longer exist.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号