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.
评论列表
文章目录