Exemplo n.º 1
0
def test_tournaments_active():
    loop_run(async_tournaments_active())
Exemplo n.º 2
0
def test_grandmaster_league():
    loop_run(async_grandmaster_league())
Exemplo n.º 3
0
def test_summoner_league():
    loop_run(async_summoner_league())
Exemplo n.º 4
0
def test_match():
    loop_run(async_match())
Exemplo n.º 5
0
def test_division_league_2():
    loop_run(async_division_league_2())
Exemplo n.º 6
0
def test_current_game():
    loop_run(async_current_game())
Exemplo n.º 7
0
def test_status():
    status = loop_run(lol.Status(platform="na1").get())
    status.dict(pyotify=True)
Exemplo n.º 8
0
def test_match_timeline():
    loop_run(async_match_timeline())
Exemplo n.º 9
0
def test_timeline():
    loop_run(async_timeline())
Exemplo n.º 10
0
def test_status():
    status = loop_run(lol.Status(platform="na1").get())
    status.dict(recursive=True)
Exemplo n.º 11
0
def test_cards():
    loop_run(async_cards())
Exemplo n.º 12
0
def test_leaderboard_query():
    loop_run(async_leaderboard_query())
Exemplo n.º 13
0
def test_leaderboard():
    loop_run(async_leaderboard())
Exemplo n.º 14
0
def test_tournament_by_id():
    loop_run(async_tournament_by_id())
Exemplo n.º 15
0
def test_trait():
    loop_run(async_trait())
Exemplo n.º 16
0
    worksheet.write('B1', 'Participant', bold)
    worksheet.write('C1', 'Stage', bold)
    worksheet.write('D1', 'Alive', bold)
    worksheet.merge_range(0, 4, 0, 3 + max_traits, 'Traits', bold)
    worksheet.merge_range(0, 4 + max_traits, 0, 3 + max_traits + max_units,
                          'Units', bold)
    row = 2
    for participant, info in outputs.items():
        worksheet.write(f"A{row}", info['placement'], wrapcenter)
        worksheet.write(f"B{row}", participant, wrapcenter)
        worksheet.write(f"C{row}",
                        f"{info['last_round'] // 5}-{info['last_round'] % 5}",
                        wrapcenter)
        worksheet.write(f"D{row}",
                        str(timedelta(seconds=int(info['time_eliminated']))),
                        wrapcenter)
        for ind, trait in enumerate(
                map(lambda x: f"{x['name']} (x{x['num_units']})\n",
                    info['traits'])):
            worksheet.write(row - 1, 4 + ind, trait, wrapcenter)
        for ind, unit in enumerate(
                map(lambda x: f"{x['character_id']} (\u2605{x['tier']})\n",
                    info['units'])):
            worksheet.write(row - 1, 4 + max_traits + ind, unit, wrapcenter)
        row += 1
    workbook.close()


if __name__ == "__main__":
    loop_run(main())
Exemplo n.º 17
0
def test_featured_games():
    loop_run(async_featured_game())
Exemplo n.º 18
0
Arquivo: lol.py Projeto: dryancd/Pyot
 def post(self, **kwargs):
     return loop_run(super().post(**kwargs))
Exemplo n.º 19
0
Arquivo: tft.py Projeto: dryancd/Pyot
 def get(self, **kwargs):
     return loop_run(super().get(**kwargs))
Exemplo n.º 20
0
def test_account():
    loop_run(async_account())
Exemplo n.º 21
0
def test_match_history():
    loop_run(async_match_history())
Exemplo n.º 22
0
def test_active_platform():
    loop_run(async_active_platform())
Exemplo n.º 23
0
def test_recent():
    loop_run(async_recent())
Exemplo n.º 24
0
def test_profile_icon():
    loop_run(async_profile_icon())
Exemplo n.º 25
0
def test_challenger_league():
    loop_run(async_challenger_league())
Exemplo n.º 26
0
def test_champion():
    loop_run(async_champion())
Exemplo n.º 27
0
def test_master_league():
    loop_run(async_master_league())
Exemplo n.º 28
0
def test_item():
    loop_run(async_item())
Exemplo n.º 29
0
def test_league():
    loop_run(async_league())
Exemplo n.º 30
0
def test_content_full():
    loop_run(async_content_full())