File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,25 +27,25 @@ def __init__(self, cli):
2727 def complete_survey (self ):
2828 # Cannot use headless mode here for some reason (sign-in cookie doesn't stick)
2929 self .browser_options ['headless' ] = False
30- res = asyncio .run (self ._complete_survey ())
30+ res = asyncio .get_event_loop (). run_until_complete (self ._complete_survey ())
3131 self .browser_options ['headless' ] = True
3232
3333 return res
3434
3535 @memoized
3636 def get_account_info (self ):
37- return asyncio .run (self ._get_account_info ())
37+ return asyncio .get_event_loop (). run_until_complete (self ._get_account_info ())
3838
3939 @memoized
4040 def get_points_balance (self ):
41- return asyncio .run (self ._get_points_balance ())
41+ return asyncio .get_event_loop (). run_until_complete (self ._get_points_balance ())
4242
4343 def clip_coupons (self ):
44- return asyncio .run (self ._clip_coupons ())
44+ return asyncio .get_event_loop (). run_until_complete (self ._clip_coupons ())
4545
4646 @memoized
4747 def get_purchases_summary (self ):
48- return asyncio .run (self ._get_purchases_summary ())
48+ return asyncio .get_event_loop (). run_until_complete (self ._get_purchases_summary ())
4949
5050 async def _retrieve_feedback_url (self ):
5151 self .cli .console .print ('Loading `My Purchases` page (to retrieve the Feedback’s Entry ID)' )
You can’t perform that action at this time.
0 commit comments