def log_command(chat, message, args): """Show status code log""" if len(args) == 1: msg = '' for log in db.get_log_list(args[0]): msg += '`{}`: {}\n'.format(log['status_code'], log['date']) chat.send(msg) else: chat.send("Enter valid url")
def get(self): self.write('<html><body>') from db import get_log_list self.write('<hr/>'.join( ['<p>%s</p>' % l.content for l in get_log_list()])) self.write('</body></html>')
def get(self): self.write('<html><body>') from db import get_log_list self.write('<hr/>'.join(['<p>%s</p>' % l.content for l in get_log_list()])) self.write('</body></html>')