Skip to content

Commit e62dc10

Browse files
committed
Commenting out missing imports
1 parent f32adeb commit e62dc10

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

custom_slack_provider/slack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def leave_channel(self, channel):
6565
self.leave_conversation_url, data=data)
6666

6767
if not leave_channel.get('ok'):
68-
print(('An error occurred adding users to the Private Slack Channel. '
68+
print(('An error occurred leaving a Slack Channel. '
6969
f'Error code: {leave_channel.get("error")}'))
7070

7171
return leave_channel

hackathon/tasks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from custom_slack_provider.slack import CustomSlackClient
1616
from hackathon.models import Hackathon
17-
from teams.tasks import remove_admin_from_channel
17+
#from teams.tasks import remove_admin_from_channel
1818

1919

2020
logger = logging.getLogger(__name__)
@@ -101,7 +101,8 @@ def create_new_hackathon_slack_channel(hackathon_id, channel_name):
101101
return
102102

103103
if slack_site_settings.remove_admin_from_channel:
104-
remove_admin_from_channel(users_to_invite, channel)
104+
# remove_admin_from_channel(users_to_invite, channel)
105+
pass
105106

106107

107108
@shared_task

teams/views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
create_teams_in_view, update_team_participants,
2424
calculate_timezone_offset)
2525
from teams.forms import HackProjectForm, EditTeamName
26-
from teams.tasks import remove_admin_from_channel
26+
# from teams.tasks import remove_admin_from_channel
2727

2828
SLACK_CHANNEL_ENDPOINT = 'https://slack.com/api/conversations.create'
2929
SLACK_CHANNEL_INVITE_ENDPOINT = 'https://slack.com/api/conversations.invite'
@@ -313,7 +313,8 @@ def create_private_channel(request, team_id):
313313
messages.success(request, 'Private Slack Channel successfully created')
314314

315315
if slack_site_settings.remove_admin_from_channel:
316-
remove_admin_from_channel.apply_async(args=[users_to_invite, channel])
316+
# remove_admin_from_channel.apply_async(args=[users_to_invite, channel])
317+
pass
317318

318319
return redirect(reverse('view_team', kwargs={'team_id': team_id}))
319320

0 commit comments

Comments
 (0)