Skip to content

Commit

Permalink
running black
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-manzi committed Jul 25, 2024
1 parent 3f1e9af commit dcdc7a4
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions egi_notebooks_accounting/eosc.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,14 @@ def get_from_to_dates(args, timestamp_file):


def generate_day_metrics(
period_start, period_end, accounting_url, token, flavor_config, timestamp_file, installation, dry_run
period_start,
period_end,
accounting_url,
token,
flavor_config,
timestamp_file,
installation,
dry_run,
):
logging.info(f"Generate metrics from {period_start} to {period_end}")
metrics = {}
Expand Down Expand Up @@ -236,7 +243,14 @@ def main():
while period_start <= to_date:
period_end = period_start + timedelta(hours=23, minutes=59)
generate_day_metrics(
period_start, period_end, accounting_url, token, flavor_config, timestamp_file, installation, args.dry_run
period_start,
period_end,
accounting_url,
token,
flavor_config,
timestamp_file,
installation,
args.dry_run,
)
period_start = period_end + timedelta(minutes=1)

Expand Down

0 comments on commit dcdc7a4

Please sign in to comment.