Skip to content

Commit eb433b9

Browse files
authored
Merge pull request #34 from HBS-HBX/#33_error_when_nothing_to_resume
fix #33 error when nothing to resume
2 parents ec1b244 + a1b2a66 commit eb433b9

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
---------
33

4+
0.7.4 (2018-08-15)
5+
~~~~~~~~~~~~~~~~~~
6+
* fix #33 error when nothing to resume using --resume
7+
48
0.7.3 (2018-08-14)
59
~~~~~~~~~~~~~~~~~~
610
* fix #31 es_update movies --newer --workers does not store worker information

django_elastic_migrations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from django_elastic_migrations.utils import loading
1111
from django_elastic_migrations.utils.django_elastic_migrations_log import get_logger
1212

13-
__version__ = '0.7.3'
13+
__version__ = '0.7.4'
1414

1515
default_app_config = 'django_elastic_migrations.apps.DjangoElasticMigrationsConfig' # pylint: disable=invalid-name
1616

django_elastic_migrations/models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,12 +1014,13 @@ def perform_action(self, dem_index, *args, **kwargs):
10141014
)
10151015
elif self.resume_mode:
10161016
self._last_update = self.index_version.get_last_time_update_called(before_action=self)
1017+
self._last_update_phrase = self._last_update
10171018
if not self._last_update:
1018-
self._last_update = 'never'
1019+
self._last_update_phrase = 'never'
10191020
self.add_log(
10201021
"--resume: checking the last time update was called succesfully and completed: "
10211022
u"\n - index version: {_index_version_name} "
1022-
u"\n - update date: {_last_update} ", use_self_dict_format=True
1023+
u"\n - update date: {_last_update_phrase} ", use_self_dict_format=True
10231024
)
10241025

10251026
self.add_log("Starting batched bulk update ...")

0 commit comments

Comments
 (0)