def last_updated(document):
 if (config.LAST_UPDATED in document):
  return document[config.LAST_UPDATED].replace(tzinfo=None)
 else:
  return epoch()

def last_updated ( document ) : if ( config . LAST_UPDATED in document ) : return document [ config . LAST_UPDATED ] . replace ( tzinfo = None ) else : return epoch ( )
fixes documents last_updated field value .