From b7972fb079fb8abbfa110523ab1b3bdabf999d4a Mon Sep 17 00:00:00 2001 From: M1ha Date: Thu, 13 Dec 2018 11:59:34 +0500 Subject: [PATCH] Bugfix --- src/django_clickhouse/storages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/django_clickhouse/storages.py b/src/django_clickhouse/storages.py index 9683520..7675f1e 100644 --- a/src/django_clickhouse/storages.py +++ b/src/django_clickhouse/storages.py @@ -223,7 +223,7 @@ class RedisStorage(Storage): rank_key = self.REDIS_KEY_RANK_TEMPLATE.format(import_key=import_key) ops_key = self.REDIS_KEY_OPS_TEMPLATE.format(import_key=import_key) - top_rank = self._redis.get(rank_key) + top_rank = int(self._redis.get(rank_key)) if top_rank: res = self._redis.zremrangebyrank(ops_key, 0, top_rank) batch_size = int(res)