From b45eba057c0973ca4c9ea1a09ce99d8849f73a00 Mon Sep 17 00:00:00 2001 From: tcitry Date: Fri, 28 Aug 2020 15:35:43 +0800 Subject: [PATCH] update offset value --- mirage/tools.py | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mirage/tools.py b/mirage/tools.py index 983b9eb..ac6614d 100755 --- a/mirage/tools.py +++ b/mirage/tools.py @@ -79,6 +79,7 @@ def executor(self, apps=None, schema_editor=None, offset=0, total=None, limit=10 if value_list: if limit == -1: t.update(len(value_list) - offset) + offset = total else: t.update(value_list[-1][0] - offset) offset = value_list[-1][0] diff --git a/setup.py b/setup.py index 28b7ecb..d6c6ca9 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-mirage-field', - version='1.1.5', + version='1.1.6', install_requires=[ "cryptography", "tqdm",