Source code for luna_faces.app.handlers.unlink_history_handler

from sanic.response import HTTPResponse

from app.handlers.base_handler import BaseRequestHandler
from crutches_on_wheels.web.query_getters import timeFilterGetter


[docs]class UnlinkHistoryHandler(BaseRequestHandler): """ Handler for work with unlink log """
[docs] async def patch(self) -> HTTPResponse: """ Clean history of unlink attributes from lists. This history is need for correct updating cash in matchers. See `unlink_log`_. .. _`unlink_log`: _static/api.html#operation/unlink_log """ createTimeLt = self.getQueryParam("time__lt", timeFilterGetter) await self.facesContext.cleanLog(createTimeLt) return self.success(204)