OP-2427 - refactor name

This commit is contained in:
Petr Kalis 2022-01-19 16:55:32 +01:00
parent d1d2ecb352
commit 99413c26bb
2 changed files with 3 additions and 3 deletions

View file

@ -314,7 +314,7 @@ class BatchStatusEndpoint(_RestApiEndpoint):
)
class PublishesStatusEndpoint(_RestApiEndpoint):
class UserReportEndpoint(_RestApiEndpoint):
"""Returns list of dict with batch info for user (email address)."""
async def get(self, user) -> Response:
output = list(self.dbcon.find({"user": user},

View file

@ -18,7 +18,7 @@ from .webpublish_routes import (
BatchReprocessEndpoint,
BatchStatusEndpoint,
TaskPublishEndpoint,
PublishesStatusEndpoint
UserReportEndpoint
)
@ -89,7 +89,7 @@ def run_webserver(*args, **kwargs):
batch_status_endpoint.dispatch
)
user_status_endpoint = PublishesStatusEndpoint(openpype_resource)
user_status_endpoint = UserReportEndpoint(openpype_resource)
server_manager.add_route(
"GET",
"/api/publishes/{user}",