@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")

    # -------------------------------------------------------------------------
AppBlock.on_taskrun: configured running apps are closed.
dataset/ETHPy150Open sahana/eden/modules/s3db/sync.py/SyncDataModel.sync_repository_last_pull_time--crossover with--dataset/ETHPy150Open xtrementl/focus/tests/unit/plugin/modules/test_apps.py/TestAppBlock.test__on_taskrun