File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ FROM python:${PYTHON_VERSION}-alpine
3
3
4
4
ENV SERVER_URL=https://0.0.0.0:3000
5
5
6
- WORKDIR /usr/src/integrationbot
6
+ WORKDIR /usr/src/integration_bot
7
7
COPY . .
8
8
9
9
RUN pip --no-cache-dir install -U pip -r requirements.txt
10
-
11
- EXPOSE 3000
10
+ RUN apk add --no-cache ca-certificates
12
11
13
12
CMD ["python3" , "-m" , "integration_bot" ]
Original file line number Diff line number Diff line change 4
4
def login () -> str :
5
5
api_url :str = os .getenv ("API_URL" ) + "/auth/login"
6
6
payload :dict = {"email" : os .getenv ('BOT_WEBSITE_EMAIL' ), "password" : os .getenv ('BOT_WEBSITE_PASSWORD' )}
7
- response = requests .post (api_url , json = payload )
7
+ response = requests .post (api_url , json = payload , verify = False )
8
8
if response .status_code == 200 :
9
9
return response .json ().get ('data' , {}).get ('token' , '' )
10
10
else :
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ def get_teams_with_factions(token: str) -> list:
5
5
url = os .getenv ("API_URL" ) + "/team/admin/teamswithfactions"
6
6
headers = {"Authorization" : f"Bearer { token } " }
7
7
print (f"[FETCH] Fetching teams with factions..." )
8
- response = requests .get (url , headers = headers )
8
+ response = requests .get (url , headers = headers , verify = False )
9
9
if response .status_code == 200 :
10
10
data = response .json ().get ('data' , [])
11
11
print (f"[FETCH] Retrieved { len (data )} teams." )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ def get_teams_with_users(token: str) -> list:
5
5
url = os .getenv ("API_URL" ) + "/team/admin/teamswithusers"
6
6
headers = {"Authorization" : f"Bearer { token } " }
7
7
print (f"[FETCH] Fetching teams with users..." )
8
- response = requests .get (url , headers = headers )
8
+ response = requests .get (url , headers = headers , verify = False )
9
9
if response .status_code == 200 :
10
10
data = response .json ().get ('data' , [])
11
11
print (f"[FETCH] Retrieved { len (data )} teams." )
You can’t perform that action at this time.
0 commit comments