Skip to content

Commit

Permalink
Update accountsettings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkd3v committed Jan 26, 2021
1 parent 0a5639a commit 0c5850e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ro_py/accountsettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, cso):
self.cso = cso
self.requests = cso.requests

def get_privacy_setting(self, privacy_setting):
async def get_privacy_setting(self, privacy_setting):
"""
Gets the value of a privacy setting.
"""
Expand All @@ -80,5 +80,5 @@ def get_privacy_setting(self, privacy_setting):
"privateMessagePrivacy"
][privacy_setting]
privacy_endpoint = endpoint + "v1/" + privacy_endpoint
privacy_req = self.requests.get(privacy_endpoint)
privacy_req = await self.requests.get(privacy_endpoint)
return privacy_req.json()[privacy_key]

0 comments on commit 0c5850e

Please sign in to comment.