예제 #1
0
파일: might.py 프로젝트: angru/the-tale
def recalculate_accounts_might():

    for account_model in AccountPrototype.live_query():
        account = AccountPrototype(model=account_model)

        new_might = calculate_might(account)

        if account.might != new_might:
            account.set_might(new_might)
            account.cmd_update_hero()

    recalculate_folclor_rating()
예제 #2
0
파일: might.py 프로젝트: Jazzis18/the-tale
def recalculate_accounts_might():

    for account_model in AccountPrototype.live_query():
        account = AccountPrototype(model=account_model)

        new_might = calculate_might(account)

        if account.might != new_might:
            account.set_might(new_might)
            account.cmd_update_hero()

    recalculate_folclor_rating()