Skip to content

Commit

Permalink
tox
Browse files Browse the repository at this point in the history
  • Loading branch information
scrungus committed Aug 19, 2024
1 parent b9fac12 commit 5402ea5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coral_credits/prom_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

LOG = logging.getLogger(__name__)


def provide_default_values(pid, rc, prov, hours):
"""Provide default values for metrics that might be None or empty."""
default_pid = pid if pid else "UnknownProjectID"
Expand All @@ -20,6 +21,7 @@ def provide_default_values(pid, rc, prov, hours):
default_hours = hours if hours is not None else 0
return default_pid, default_rc, default_prov, default_hours


def get_credit_allocation_date(date_type):
try:
accounts = db_utils.get_all_resource_provider_account()
Expand Down

0 comments on commit 5402ea5

Please sign in to comment.