From 0e88b77ad7f671cca299bce500b40b054f5364d2 Mon Sep 17 00:00:00 2001 From: hanhxiao Date: Fri, 23 Aug 2019 17:55:33 +0800 Subject: [PATCH] fix(frontend): fix request_id zero is none --- gnes/client/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnes/client/cli.py b/gnes/client/cli.py index e8011083..b33f421f 100644 --- a/gnes/client/cli.py +++ b/gnes/client/cli.py @@ -117,8 +117,9 @@ def update(self): def __enter__(self): self.start_time = time.perf_counter() - self.num_batch = 0 + self.num_batch = -1 sys.stdout.write('\n') + self.update() return self def __exit__(self, exc_type, exc_val, exc_tb):