Skip to content

Commit

Permalink
init measurements refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Oct 3, 2024
1 parent ffe750e commit 5f3fddd
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 150 deletions.
3 changes: 3 additions & 0 deletions ooniapi/common/src/common/routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ class BaseModel(PydandicBaseModel):
date: lambda v: v.strftime(ISO_FORMAT_DATE),
}
)

class NotSupportedResponse(BaseModel):
mssg: str
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

from prometheus_fastapi_instrumentator import Instrumentator

from .routers import aggregation, measurements
from .routers.v1 import aggregation
from .routers.v1 import measurements

from .dependencies import get_clickhouse_session
from .common.dependencies import get_settings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""
Aggregation API
The routes are mounted under /api
"""

from datetime import datetime, timedelta, date
Expand All @@ -20,7 +19,7 @@

from oonimeasurements.common.clickhouse_utils import query_click, query_click_one_row
from oonimeasurements.common.utils import jerror, commasplit, convert_to_csv
from ..dependencies import get_clickhouse_session
from ...dependencies import get_clickhouse_session


router = APIRouter()
Expand Down
Loading

0 comments on commit 5f3fddd

Please sign in to comment.