feat(reports): stabilize on-demand generation, live presence and 1C fallback
This commit is contained in:
@@ -12,11 +12,13 @@ class ExceptionItem(BaseModel):
|
||||
comment: Optional[str] = ""
|
||||
|
||||
|
||||
@router.get("")
|
||||
@router.get("/")
|
||||
def api_get_exceptions():
|
||||
return get_all_exceptions_from_db()
|
||||
|
||||
|
||||
@router.post("")
|
||||
@router.post("/")
|
||||
def api_add_exception(item: ExceptionItem):
|
||||
if not add_exception_to_db(item.category, item.value, item.comment):
|
||||
@@ -24,6 +26,7 @@ def api_add_exception(item: ExceptionItem):
|
||||
return {"status": "success", "data": item}
|
||||
|
||||
|
||||
@router.delete("")
|
||||
@router.delete("/")
|
||||
def api_delete_exception(category: str, value: str):
|
||||
if not remove_exception_from_db(category, value):
|
||||
|
||||
Reference in New Issue
Block a user