Skip to content

Commit

Permalink
Merge pull request #655 from 12rambau/planet
Browse files Browse the repository at this point in the history
fix: drop use of Request from planet
  • Loading branch information
12rambau authored Dec 11, 2022
2 parents 3e9e2d3 + 57f60a5 commit 455a651
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sepal_ui/planetapi/planet_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from planet.auth import Auth
from planet.exceptions import NoPermission
from planet.http import Session
from planet.models import Request
from traitlets import Bool, Dict

from sepal_ui.message import ms
Expand Down Expand Up @@ -112,10 +111,10 @@ def _is_active(self):
def get_subscriptions(self):
"""load the user subscriptions and return empty list if nothing found"""

req = Request(self.SUBS_URL, method="GET")
req = self.session.request("GET", self.SUBS_URL)

try:
response = asyncio.run(self.session.request(req))
response = asyncio.run(req)
if response.status_code == 200:
return response.json()

Expand Down

0 comments on commit 455a651

Please sign in to comment.