Skip to content

Commit

Permalink
set default
Browse files Browse the repository at this point in the history
  • Loading branch information
francesconazzaro committed Jul 25, 2024
1 parent 36d0b65 commit 4f665e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cads_broker/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def register_functions():
lambda context,
cost_key,
scale_factor=1,
*args: context.request.request_metadata["costs"][cost_key] * scale_factor,
*args: context.request.request_metadata.get("costs", {}).get(cost_key, 0) * scale_factor,
)
expressions.FunctionFactory.FunctionFactory.register_function(
"user_finished_request_count",
Expand Down

0 comments on commit 4f665e7

Please sign in to comment.