ruff: Fix PLC0206 Extracting value from dictionary without calling .items().

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-12-20 12:18:06 -08:00
committed by Tim Abbott
parent 5bad79dd5b
commit 19b8cde27f
18 changed files with 87 additions and 117 deletions

View File

@@ -68,9 +68,9 @@ def main() -> None:
metrics = metrics_file["metrics"]
while True:
for metric_id in metrics:
for metric_id, query in metrics.items():
try:
update_metric(metric_id, metrics.get(metric_id), page_id, oauth_token)
update_metric(metric_id, query, page_id, oauth_token)
except Exception as e:
logging.exception(e)
time.sleep(30)