Skip to content

Commit

Permalink
Fixes actions docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Aug 23, 2023
1 parent 12fc711 commit cc38139
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chowda/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
from metaflow.exception import MetaflowNotFound
from metaflow.integrations import ArgoEvent
from sqlmodel import Session, select
from starlette.datastructures import FormData
from starlette.requests import Request
from starlette.responses import Response
from starlette.templating import Jinja2Templates
from starlette.datastructures import FormData
from starlette_admin import CustomView, action
from starlette_admin.fields import IntegerField, TextAreaField
from starlette_admin._types import RequestAction
from starlette_admin.contrib.sqlmodel import ModelView
from starlette_admin.exceptions import ActionFailed
from starlette_admin.fields import IntegerField, TextAreaField

from chowda.auth.utils import get_user
from chowda.db import engine
Expand Down Expand Up @@ -189,7 +189,7 @@ async def start_batches(self, request: Request, pks: List[Any]) -> str:
submit_btn_class='btn-success',
)
async def duplicate_batches(self, request: Request, pks: List[Any]) -> str:
"""Starts a Batch by sending a message to the Argo Event Bus"""
"""Create a new batch from the selected batch"""
try:
with Session(engine) as db:
for batch_id in pks:
Expand All @@ -216,7 +216,7 @@ async def duplicate_batches(self, request: Request, pks: List[Any]) -> str:
submit_btn_class='btn-success',
)
async def combine_batches(self, request: Request, pks: List[Any]) -> str:
"""Starts a Batch by sending a message to the Argo Event Bus"""
"""Merge multiple batches into a new batch"""
try:
with Session(engine) as db:
batches = db.exec(select(Batch).where(Batch.id.in_(pks))).all()
Expand Down

0 comments on commit cc38139

Please sign in to comment.