Esempio n. 1
0
def safe_merger():
    from bibauthorid_merge import merge
    from bibauthorid_rabbit import rabbit
    from bibauthorid_personid_maintenance import (
        check_personid_papers,
        check_results,
        check_merger,
        repair_personid,
        copy_personids,
        compare_personids,
    )

    assert check_results()
    if not check_personid_papers():
        rabbit([])
        repair_personid()
        rabbit([])

    assert check_personid_papers()
    copy_personids()
    merge()
    assert check_personid_papers()
    assert check_merger()
    compare_personids("/tmp/merge_diff")
Esempio n. 2
0
def run_merge():
    from bibauthorid_merge import merge
    merge()