diff --git a/endpoints/api.py b/endpoints/api.py index ec9aec0e4..8e597f29e 100644 --- a/endpoints/api.py +++ b/endpoints/api.py @@ -36,9 +36,9 @@ logger = logging.getLogger(__name__) def log_action(kind, user_or_orgname, description=None, metadata={}, repo=None): - parent = current_user.db_user() - model.log_action(kind, user_or_orgname, performer = parent, ip = request.remote_addr, - description = description, metadata = metadata, repository = repo) + performer = current_user.db_user() + model.log_action(kind, user_or_orgname, performer=parent, ip=request.remote_addr, + description=description, metadata=metadata, repository=repo) def api_login_required(f): @wraps(f)