diff --git a/champions.json b/champions.json index d076e0b..69d67f6 100644 --- a/champions.json +++ b/champions.json @@ -2,10 +2,12 @@ "aatrox", "ahri", "akali", + "akshan", "alistar", "amumu", "anivia", "annie", + "aphelios", "ashe", "aurelionsol", "azir", @@ -35,6 +37,7 @@ "gnar", "gragas", "graves", + "gwen", "hecarim", "heimerdinger", "illaoi", @@ -62,6 +65,7 @@ "leblanc", "leesin", "leona", + "lillia", "lissandra", "lucian", "lulu", @@ -86,16 +90,22 @@ "pantheon", "poppy", "pyke", + "qiyana", "quinn", "rakan", "rammus", "reksai", + "rell", "renekton", "rengar", "riven", "rumble", "ryze", + "samira", "sejuani", + "senna", + "seraphine", + "sett", "shaco", "shen", "shyvana", @@ -126,6 +136,7 @@ "veigar", "velkoz", "vi", + "viego", "viktor", "vladimir", "volibear", @@ -136,7 +147,9 @@ "xerath", "xinzhao", "yasuo", + "yone", "yorick", + "yuumi", "zac", "zed", "ziggs", diff --git a/changelog.md b/changelog.md index 8adfe99..a2ab178 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +**v2.0.1** +* Fixed a bug where lane and chanp where swapped +* Even more code clean up + **v2.0.0** * Ported to run on Python 3.x * Code cleanup diff --git a/opgg.exe b/opgg.exe index eace087..50f187d 100644 Binary files a/opgg.exe and b/opgg.exe differ diff --git a/src/opgg.py b/src/opgg.py index d2a29fa..db89aff 100644 --- a/src/opgg.py +++ b/src/opgg.py @@ -3,7 +3,7 @@ import readline -# VERSION: 2.0.0 +# VERSION: 2.1.0 # Made by Ewy 16.10.2018 # Last Update: 02.11.2021 @@ -50,12 +50,14 @@ def getLane(): return lane -def getLink(lane, champ): +def getLink(champ, lane): if lane == 'aram': - url = 'https://euw.op.gg/aram/' + champ + '/statistics/450/build' + return 'https://euw.op.gg/aram/' + champ + '/statistics/450/build' else: - url = 'https://euw.op.gg/champion/' + champ + '/statistics/' + lane + return 'https://euw.op.gg/champion/' + champ + '/statistics/' + lane + +def openLink(url): webbrowser.open(url) @@ -63,5 +65,5 @@ def getLink(lane, champ): print('OP.GG LOOKUP\n') while True: - getLink(getLane(), getChamp()) + openLink(getLink(getChamp(), getLane())) print('')