Example #1
0
def test_tournaments_active():
    loop_run(async_tournaments_active())
Example #2
0
def test_grandmaster_league():
    loop_run(async_grandmaster_league())
Example #3
0
def test_summoner_league():
    loop_run(async_summoner_league())
Example #4
0
def test_match():
    loop_run(async_match())
Example #5
0
def test_division_league_2():
    loop_run(async_division_league_2())
Example #6
0
def test_current_game():
    loop_run(async_current_game())
Example #7
0
def test_status():
    status = loop_run(lol.Status(platform="na1").get())
    status.dict(pyotify=True)
Example #8
0
def test_match_timeline():
    loop_run(async_match_timeline())
Example #9
0
def test_timeline():
    loop_run(async_timeline())
Example #10
0
def test_status():
    status = loop_run(lol.Status(platform="na1").get())
    status.dict(recursive=True)
Example #11
0
def test_cards():
    loop_run(async_cards())
Example #12
0
def test_leaderboard_query():
    loop_run(async_leaderboard_query())
Example #13
0
def test_leaderboard():
    loop_run(async_leaderboard())
Example #14
0
def test_tournament_by_id():
    loop_run(async_tournament_by_id())
Example #15
0
def test_trait():
    loop_run(async_trait())
Example #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())
Example #17
0
def test_featured_games():
    loop_run(async_featured_game())
Example #18
0
File: lol.py Project: dryancd/Pyot
 def post(self, **kwargs):
     return loop_run(super().post(**kwargs))
Example #19
0
File: tft.py Project: dryancd/Pyot
 def get(self, **kwargs):
     return loop_run(super().get(**kwargs))
Example #20
0
def test_account():
    loop_run(async_account())
Example #21
0
def test_match_history():
    loop_run(async_match_history())
Example #22
0
def test_active_platform():
    loop_run(async_active_platform())
Example #23
0
def test_recent():
    loop_run(async_recent())
Example #24
0
def test_profile_icon():
    loop_run(async_profile_icon())
Example #25
0
def test_challenger_league():
    loop_run(async_challenger_league())
Example #26
0
def test_champion():
    loop_run(async_champion())
Example #27
0
def test_master_league():
    loop_run(async_master_league())
Example #28
0
def test_item():
    loop_run(async_item())
Example #29
0
def test_league():
    loop_run(async_league())
Example #30
0
def test_content_full():
    loop_run(async_content_full())