From 30f7421a1c1a2c96554d3a2ccaf09db74f6747b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Kr=C3=B6ker?= Date: Sat, 29 Oct 2022 15:06:24 +0200 Subject: [PATCH] do loops --- profiler.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/profiler.py b/profiler.py index 7d5ba26..cb87deb 100644 --- a/profiler.py +++ b/profiler.py @@ -12,7 +12,8 @@ # fM44 is small # a2lU has many annotations # DDB.at("tasks").read(key="fM44", as_type=PathDict) - with DDB.at("tasks").session(key="a2lU", as_type=PathDict) as (session, task): - task["jay"] = lambda x: (x or 0) + 1 - session.write() + for _ in range(10): + with DDB.at("tasks").session(key="a2lU", as_type=PathDict) as (session, task): + task["jay"] = lambda x: (x or 0) + 1 + session.write() p.open_in_browser(timeline=True)