Skip to content

Commit

Permalink
Update views_api.py
Browse files Browse the repository at this point in the history
remove update extension method
  • Loading branch information
bitkarrot authored Jul 26, 2024
1 parent cf2e14a commit 5d58062
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from fastapi import Depends, Query
from starlette.exceptions import HTTPException

# from lnbits.core import update_user_extension
from lnbits.core.crud import get_user
from lnbits.db import Filters
from lnbits.decorators import (
Expand Down Expand Up @@ -248,23 +247,3 @@ async def api_scheduler_pause(
return await pause_scheduler(job_id, status)


# Activate Extension
# @scheduler_ext.post(
# "/api/v1/extensions",
# name="Extension Toggle",
# summary="Extension Toggle",
# description="Extension Toggle",
# response_model=dict[str, str],
# responses={404: {"description": "Jobs does not exist."}},
# )
# async def api_scheduler_activate_extension(
# extension: str = Query(...), jobsid: str = Query(...), active: bool = Query(...)
# ) -> dict:
# job = await get_user(jobsid)
# if not job:
# raise HTTPException(
# status_code=HTTPStatus.NOT_FOUND, detail="Job does not exist."
# )
# await update_user_extension(job_id=jobsid, extension=extension, active=active)
# return {"extension": "updated"}

0 comments on commit 5d58062

Please sign in to comment.