async def get_logs_file(request, document): """Returns the html rendered log entry""" if document is None: abort(404) log_entry = LogEntry(app, document) return log_entry.render_html()
async def get_logs_file(request, document): """Ritorna l'ingresso log renderizzato in HTML""" if document is None: abort(404) log_entry = LogEntry(app, document) return log_entry.render_html()
async def get_logs_file(request, key): """Returns the html rendered log entry""" document = await app.ctx.db.logs.find_one({"key": key}) if document is None: abort(404) log_entry = LogEntry(app, document) return log_entry.render_html()
async def get_logs_file(request, key): """Returned the plain text rendered log entry""" document = await app.db.logs.find_one({'key': key}) if document is None: abort(404) log_entry = LogEntry(app, document) return log_entry.render_html()