Skip to content

Commit

Permalink
fixup! Fix: All node metrics were returned by default
Browse files Browse the repository at this point in the history
  • Loading branch information
hoh committed Jan 24, 2024
1 parent ebabad2 commit 6643264
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/aleph/web/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ async def ccn_metric(request: web.Request) -> web.Response:
ccn = query_metric_ccn(
session,
node_id=node_id,
start_timestamp=query_params.start_date,
end_timestamp=query_params.end_date,
start_timestamp=query_params.start_timestamp,
end_timestamp=query_params.end_timestamp,
sort_order=query_params.sort,
)
if not ccn:
Expand All @@ -132,8 +132,8 @@ async def crn_metric(request: web.Request) -> web.Response:
crn = query_metric_crn(
session,
node_id=node_id,
start_timestamp=query_params.start_date,
end_timestamp=query_params.end_date,
start_timestamp=query_params.start_timestamp,
end_timestamp=query_params.end_timestamp,
sort_order=query_params.sort,
)

Expand Down

0 comments on commit 6643264

Please sign in to comment.