Skip to content

Commit

Permalink
Removed notifications to the slack.
Browse files Browse the repository at this point in the history
  • Loading branch information
zadoev-ra committed Mar 15, 2024
1 parent 466ceb2 commit 53492b1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lambda-package/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import gspread
from pipedrive.client import Client
from slack_sdk import WebClient


PIPEDRIVE_CUSTOM_FIELD_FALLBACK = "6244292b70f654e8adb467e7c4b6e417c59099a8"
Expand Down Expand Up @@ -151,17 +150,6 @@ def error_response(message):
if missing_values:
ws.update_cell(new_row_num, len(values) + 1, json.dumps(missing_values))

slack_client = WebClient(token=os.environ['SLACK_BOT_TOKEN'])
# `ws.url` returns link to google api, but we need a link to google docs
ws_url = (
f'https://docs.google.com/spreadsheets/d/{spreadsheet_id}/'
f'edit#gid={ws.id}'
)
slack_client.chat_postMessage(
channel='G054C3DPL',
text=f'{job} :tada:. <{ws_url}|Open applications list>',
)

# average time for longest path is about 1.5-2 s
# in good circumstances (fast internet, pd works without delays)
try:
Expand Down

0 comments on commit 53492b1

Please sign in to comment.