Skip to content

Commit

Permalink
Improve app reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
AlberLC committed Feb 4, 2022
1 parent 2e0d926 commit 32ad1fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flanarunas/flana_runas.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ async def run(self):
msg_data = json.loads(msg.data)[2]
uri = msg_data['uri']
data = msg_data['data']
event_type = msg_data['eventType']

if uri == '/lol-perks/v1/currentpage' and data['isDeletable']: # to save rune pages
try:
Expand All @@ -157,7 +158,7 @@ async def run(self):
(
('/lol-champ-select/v1/grid-champions' in uri and data['selectionStatus']['selectedByMe'] and (not self.current_champion or data['id'] != self.current_champion.id))
or
(uri == '/lol-champ-select/v1/current-champion' and self.current_champion is None)
(uri == '/lol-champ-select/v1/current-champion' and self.current_champion is None and event_type != 'Delete')
)
): # set rune pages by champion selected
try:
Expand Down

0 comments on commit 32ad1fe

Please sign in to comment.