Skip to content

Commit

Permalink
Merge branch 'develop' into revert-730-feature/remove_rest_client_fro…
Browse files Browse the repository at this point in the history
…m_celery
  • Loading branch information
helllllllder committed Jul 26, 2022
2 parents a15bc66 + 94fcdc2 commit 03892c6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bothub/api/v2/internal/connect_rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ def remove_authorization(
authorization_uuid,
user_email,
)
cache_key = f"LIST_CLASSIFIER_CACHE_KEY:project_uuid:{project_uuid}:user_email:{user_email}"
cache.delete(cache_key)
request = requests.delete(
url=f"{self.base_url}/v1/organization/project/destroy_classifier/",
headers=self.headers,
Expand All @@ -75,11 +73,6 @@ def remove_authorization(
return request.json()

def create_classifier(self, **kwargs):
project_uuid = kwargs.get("project_uuid")
user_email = kwargs.get("user_email")
cache_key = f"LIST_CLASSIFIER_CACHE_KEY:project_uuid:{project_uuid}:user_email:{user_email}"
cache.delete(cache_key)

request = requests.post(
url=f"{self.base_url}/v1/organization/project/create_classifier/",
headers=self.headers,
Expand Down

0 comments on commit 03892c6

Please sign in to comment.