|
|
@ -250,14 +250,14 @@ class Worker(object):
|
|
|
|
"""Fetches birth date from Redis."""
|
|
|
|
"""Fetches birth date from Redis."""
|
|
|
|
birth_timestamp = self.connection.hget(self.key, 'birth')
|
|
|
|
birth_timestamp = self.connection.hget(self.key, 'birth')
|
|
|
|
if birth_timestamp:
|
|
|
|
if birth_timestamp:
|
|
|
|
return utcparse(birth_timestamp)
|
|
|
|
return utcparse(as_text(birth_timestamp))
|
|
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
@property
|
|
|
|
def death_date(self):
|
|
|
|
def death_date(self):
|
|
|
|
"""Fetches death date from Redis."""
|
|
|
|
"""Fetches death date from Redis."""
|
|
|
|
death_timestamp = self.connection.hget(self.key, 'death')
|
|
|
|
death_timestamp = self.connection.hget(self.key, 'death')
|
|
|
|
if death_timestamp:
|
|
|
|
if death_timestamp:
|
|
|
|
return utcparse(death_timestamp)
|
|
|
|
return utcparse(as_text(death_timestamp))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def set_state(self, state, pipeline=None):
|
|
|
|
def set_state(self, state, pipeline=None):
|
|
|
|