leadguru-jobs 0.336.0__py3-none-any.whl → 0.338.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {leadguru_jobs-0.336.0.dist-info → leadguru_jobs-0.338.0.dist-info}/METADATA +1 -1
- {leadguru_jobs-0.336.0.dist-info → leadguru_jobs-0.338.0.dist-info}/RECORD +6 -6
- lgt_jobs/jobs/bot_stats_update.py +2 -2
- lgt_jobs/jobs/workspace_connect.py +4 -3
- {leadguru_jobs-0.336.0.dist-info → leadguru_jobs-0.338.0.dist-info}/WHEEL +0 -0
- {leadguru_jobs-0.336.0.dist-info → leadguru_jobs-0.338.0.dist-info}/top_level.txt +0 -0
@@ -8,7 +8,7 @@ lgt_jobs/smtp.py,sha256=W9OIkckBORAWEsNgIG3nVKs6OTU6esZNnq09WDsj8Lc,1352
|
|
8
8
|
lgt_jobs/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
lgt_jobs/jobs/analytics.py,sha256=uL3_0xpS37VRJihTW1KiM_yhGGt1XV2yUNId_y-ISLk,972
|
10
10
|
lgt_jobs/jobs/archive_leads.py,sha256=wZ4LwbuC9G7NB16AO15YiMemEV40LoJVjd8VRqaFv9o,831
|
11
|
-
lgt_jobs/jobs/bot_stats_update.py,sha256=
|
11
|
+
lgt_jobs/jobs/bot_stats_update.py,sha256=RcaN04AhK0FlWL8sdVcH8JCl2lZrdqeAa6ZH2jJk2zc,4926
|
12
12
|
lgt_jobs/jobs/chat_history.py,sha256=lhRtEVu15BJk40Q-O0_U4LB42dg2LrFuxEZP6Ik6oi4,6001
|
13
13
|
lgt_jobs/jobs/clear_user_analytics.py,sha256=xCq_1TibYJp4Ezq22JPQfQpwCmc2QHJxgTcthxKLHWc,2525
|
14
14
|
lgt_jobs/jobs/conversation_replied.py,sha256=nFEK8afPZ4cnxlU2yxXUAAQW8DiHJ7Du434gPrmQy-4,2870
|
@@ -19,11 +19,11 @@ lgt_jobs/jobs/send_code.py,sha256=pLzKJhaTvWYPtvOjH02xpZ-h4dMk5hmkcnc5AS8hc9Q,82
|
|
19
19
|
lgt_jobs/jobs/send_slack_message.py,sha256=hS1eaHaMX9sMPO-3TeeM1K5xTkedlMBfAUnTtCFR3DU,2686
|
20
20
|
lgt_jobs/jobs/update_slack_profile.py,sha256=mdZwhvlgc0UCZAcRt2WIa_e2JZVoxHS2PbhaI6RDulI,2901
|
21
21
|
lgt_jobs/jobs/user_balance_update.py,sha256=7LkcpKMilxqUcCS1_OW51qQnaXvGBavkj0a-0_-gK2g,2352
|
22
|
-
lgt_jobs/jobs/workspace_connect.py,sha256=
|
22
|
+
lgt_jobs/jobs/workspace_connect.py,sha256=pwyl4_zhJpyPD2pblXFHBmOiS3GOun19-0opuX5qHfg,7053
|
23
23
|
lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
24
|
lgt_jobs/services/web_client.py,sha256=4Qs8s0LEnXiyk3xVW_zu__TjiBaqEI99v-DCdRSmkeA,1930
|
25
25
|
lgt_jobs/templates/new_message_mail_template.html,sha256=82XdDPtmkJVUWUcZtgd8bv_9-viAG2WWOnf3AhR6PeY,3635
|
26
|
-
leadguru_jobs-0.
|
27
|
-
leadguru_jobs-0.
|
28
|
-
leadguru_jobs-0.
|
29
|
-
leadguru_jobs-0.
|
26
|
+
leadguru_jobs-0.338.0.dist-info/METADATA,sha256=nk4YjPJ9AxDlij0NIYSziX84PrbztbAVAle8OEPz4gE,1181
|
27
|
+
leadguru_jobs-0.338.0.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
28
|
+
leadguru_jobs-0.338.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
|
29
|
+
leadguru_jobs-0.338.0.dist-info/RECORD,,
|
@@ -98,8 +98,8 @@ class BotStatsUpdateJob(BaseBackgroundJob, ABC):
|
|
98
98
|
users_count += num_members
|
99
99
|
|
100
100
|
bot.active_channels = active_channels
|
101
|
-
bot.messages_received = received_messages.get(bot.
|
102
|
-
bot.messages_filtered = filtered_messages.get(bot.
|
101
|
+
bot.messages_received = received_messages.get(bot.source.source_name, 0)
|
102
|
+
bot.messages_filtered = filtered_messages.get(bot.source.source_name, 0)
|
103
103
|
bot.connected_channels = connected_channels
|
104
104
|
bot.channels = len(channels)
|
105
105
|
bot.channels_users = channels_users
|
@@ -3,7 +3,7 @@ from typing import Dict
|
|
3
3
|
import requests
|
4
4
|
from lgt.common.python.helpers import update_credentials, get_formatted_bot_name
|
5
5
|
from lgt.common.python.slack_client.web_client import SlackWebClient
|
6
|
-
from lgt_data.enums import StatusConnection
|
6
|
+
from lgt_data.enums import StatusConnection, SourceType
|
7
7
|
from lgt_data.model import UserWorkspace, SlackUser, DedicatedBotModel
|
8
8
|
from lgt_data.mongo_repository import UserMongoRepository, DedicatedBotRepository
|
9
9
|
from ..basejobs import BaseBackgroundJobData, BaseBackgroundJob
|
@@ -105,8 +105,9 @@ class ConnectSlackAccountJob(BaseBackgroundJob, ABC):
|
|
105
105
|
slack_users=slack_users_dict)
|
106
106
|
|
107
107
|
dedicated_bots_repository = DedicatedBotRepository()
|
108
|
-
dedicated_bots = dedicated_bots_repository.
|
109
|
-
|
108
|
+
dedicated_bots = dedicated_bots_repository.get_all(user_id=current_user.id, user_name=data.slack_email,
|
109
|
+
source_type=SourceType.SLACK, include_deleted=True,
|
110
|
+
include_paused=True)
|
110
111
|
user_workspaces_map: Dict[str, UserWorkspace] = {workspace.id: workspace
|
111
112
|
for workspace in user_workspaces if workspace.token}
|
112
113
|
for workspace_id, workspace in user_workspaces_map.items():
|
File without changes
|
File without changes
|