Skip to content

Commit

Permalink
Fix this again
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Jul 22, 2024
1 parent 609809a commit 5bdbe9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions egi_notebooks_accounting/eosc.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ def main():
for pod in VM.select().where((VM.end_time >= from_date) & (VM.end_time <= to_date)):
update_pod_metric(pod, metrics, flavor_config)
# pods starting but not finished between the reporting times
for pod in VM.select().where(
(VM.start_time >= from_date) & (VM.end_time is not None)
):
for pod in VM.select().where((VM.start_time >= from_date) & (VM.end_time is None)):
update_pod_metric(pod, metrics, flavor_config)

# ==== push this to EOSC accounting ====
Expand Down

0 comments on commit 5bdbe9b

Please sign in to comment.