INNER CODE UNIT · Python

logs_query

weolar/miniblink49 · third_party/WebKit/Tools/RebaselineLogServer/main.py:88

def logs_query():
    return LogEntry.query().order(-LogEntry.date)


def execute_command(command_data):
    if not command_data:
        return "ERROR: No command data"

    if "name" not in command_data:
        return "Command is missing a name: %s" % json.dumps(command_data)

    name = command_data["name"]
    command = COMMANDS.get(name)
    if not command:
        return "Command %s is unknown"
    try:
        return command.execute(command_data)
    except Exception as e:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…