'Last pull synchronization date/time for this repository'

@staticmethod
def sync_repository_last_pull_time(row):

    try:
        repository_id = row['sync_repository.id']
    except AttributeError:
        return '-'
    table = current.s3db.sync_task
    query = (table.repository_id == repository_id)
    task = current.db(query).select(orderby=(~ table.last_pull), limitby=(0, 1)).first()
    if (task and task.last_pull):
        return S3DateTime.datetime_represent(task.last_pull, utc=True)
    else:
        return current.T('never')
