pull/778/head
Andrey 2023-05-03 17:00:20 +03:00
rodzic d794a887ce
commit 789ed431c1
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -291,7 +291,7 @@ class QueryInfoResponse(BaseModel):
query: str
query_id: str
public: bool = False
preapproved: bool = False
preapprove: bool = False
approved: bool = False
parameters: List[str] = Field(default_factory=list)
created_at: datetime

Wyświetl plik

@ -184,6 +184,10 @@ async def get_query_handler(
raise MoonstreamHTTPException(status_code=500, internal_error=e)
try:
if entry.content is None:
raise MoonstreamHTTPException(
status_code=403, detail=f"Query is empty. Please update it."
)
query = text(entry.content)
except Exception as e:
raise MoonstreamHTTPException(