mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
ruff: Fix PLC0206 Extracting value from dictionary without calling .items().
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5bad79dd5b
commit
19b8cde27f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user