Skip to content

Commit 2ad4bc4

Browse files
committed
feat: simplify regional url check to shuffler.io only
1 parent d34b054 commit 2ad4bc4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shuffle-tools/1.2.0/src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def send_sms_shuffle(self, apikey, phone_numbers, body):
191191

192192
data = {"numbers": targets, "body": body}
193193

194-
base = self.url if "shuffler.io" in self.url or "run.app" in self.url else "https://shuffler.io"
194+
base = self.url if "shuffler.io" in self.url else "https://shuffler.io"
195195
url = "%s/api/v1/functions/sendsms" % base
196196
headers = {"Authorization": "Bearer %s" % apikey}
197197
return requests.post(url, headers=headers, json=data, verify=False).text
@@ -227,7 +227,7 @@ def send_email_shuffle(self, apikey, recipients, subject, body, attachments=""):
227227
except Exception as e:
228228
pass
229229

230-
base = self.url if "shuffler.io" in self.url or "run.app" in self.url else "https://shuffler.io"
230+
base = self.url if "shuffler.io" in self.url else "https://shuffler.io"
231231
url = "%s/functions/sendmail" % base
232232
headers = {"Authorization": "Bearer %s" % apikey}
233233
return requests.post(url, headers=headers, json=data).text

0 commit comments

Comments
 (0)