mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
OP-2427 - refactor name
This commit is contained in:
parent
d1d2ecb352
commit
99413c26bb
2 changed files with 3 additions and 3 deletions
|
|
@ -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},
|
||||
|
|
|
|||
|
|
@ -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}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue