Skip to content

Commit 436c6e2

Browse files
committed
Removing unneeded code
1 parent e3541c0 commit 436c6e2

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

hackathon/tasks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
from custom_slack_provider.slack import CustomSlackClient
1717
from hackathon.models import Hackathon
18-
#from teams.tasks import remove_admin_from_channel
1918

2019

2120
logger = logging.getLogger(__name__)

main/settings.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
]
168168

169169
# Celery
170+
CELERY_IMPORTS = ("hackathon.tasks", )
170171
CELERY_BROKER_URL = os.environ.get('CELERY_BROKER', 'redis://redis:6379')
171172
CELERY_RESULT_BACKEND = os.environ.get('CELERY_RESULT_BACKEND', 'redis://redis:6379') # noqa: E501
172173
CELERY_ACCEPT_CONTENT = os.environ.get('CELERY_ACCEPT_CONTENT', 'application/json').split(',') # noqa: E501
@@ -225,10 +226,3 @@
225226
integrations=[DjangoIntegration()]
226227
)
227228

228-
229-
CELERY_IMPORTS = ("hackathon.tasks", )
230-
CELERY_BROKER_URL = os.environ.get('CELERY_BROKER', 'redis://redis:6379')
231-
CELERY_RESULT_BACKEND = os.environ.get('CELERY_RESULT_BACKEND', 'redis://redis:6379') # noqa: E501
232-
CELERY_ACCEPT_CONTENT = os.environ.get('CELERY_ACCEPT_CONTENT', 'application/json').split(',') # noqa: E501
233-
CELERY_TASK_SERIALIZER = os.environ.get('CELERY_TASK_SERIALIZER', 'json')
234-
CELERY_RESULT_SERIALIZER = os.environ.get('CELERY_RESULT_SERIALIZER', 'json')

0 commit comments

Comments
 (0)