Skip to content

Commit

Permalink
remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
GDay committed Oct 13, 2023
1 parent 4d50397 commit 1d6453a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions back/admin/integrations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class ManifestType(models.IntegerChoices):
def has_user_context(self):
return self.manifest_type == Integration.ManifestType.WEBHOOK

def run_request(self, data, file=None):
def run_request(self, data):
url = self._replace_vars(data["url"])
if "data" in data:
post_data = self._replace_vars(json.dumps(data["data"]))
Expand Down Expand Up @@ -292,9 +292,6 @@ def _polling(self, item, response):
return False, response

def execute(self, new_hire, params):
# Only one file can be used per integration
file = None

self.params = params
self.params["responses"] = []
self.params["files"] = {}
Expand All @@ -313,7 +310,7 @@ def execute(self, new_hire, params):

# Run all requests
for item in self.manifest["execute"]:
success, response = self.run_request(item, file=file)
success, response = self.run_request(item)

# check if we need to poll before continuing
if polling := item.get("polling", False):
Expand Down

0 comments on commit 1d6453a

Please sign in to comment.