def log_get(): log_entries = [] for log_entry in LogEntry.iter_log_entries(): log_entries.append(log_entry.dict()) return utils.jsonify(log_entries)
def log_get(): log_entries = [] for log_entry in LogEntry.get_log_entries(): log_entries.append({ 'id': log_entry.id, 'time': log_entry.time, 'message': log_entry.message, }) return utils.jsonify(log_entries)