Added tests on

This commit is contained in:
M1ha 2018-11-21 16:51:19 +05:00
parent 2dab8fcccb
commit 0dbfa8fff1
2 changed files with 1 additions and 5 deletions

View File

@ -188,6 +188,4 @@ class ClickHouseModel(with_metaclass(ClickHouseModelMeta, InfiModel)):
if last_sync_time is None:
return True
print(last_sync_time)
return (last_sync_time - datetime.datetime.now()).total_seconds() >= cls.get_sync_delay()

View File

@ -1,9 +1,7 @@
from enum import Enum
from infi.clickhouse_orm import fields
from django_clickhouse.clickhouse_models import ClickHouseModel
from django_clickhouse.engines import MergeTree, CollapsingMergeTree
from infi.clickhouse_orm import fields
from tests.models import TestModel