Skip to content

Commit a468535

Browse files
committed
Fixes #325 and fixes a bug in dedupe
1 parent 881ab6d commit a468535

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dojo/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def add_comment_task(find, note):
206206
add_comment(find, note)
207207

208208
@app.task(name='async_dedupe')
209-
def async_dedupe(self, new_finding, *args, **kwargs):
209+
def async_dedupe(new_finding, *args, **kwargs):
210210
logger.info("running deduplication")
211211
eng_findings_cwe = Finding.objects.filter(test__engagement__product=new_finding.test.engagement.product,
212212
cwe=new_finding.cwe).exclude(id=new_finding.id).exclude(cwe=None).exclude(endpoints=None)

setup.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ else
141141
sudo python manage.py makemigrations dojo
142142
sudo python manage.py makemigrations
143143
sudo python manage.py migrate
144-
sudo python manage.py syncdb
144+
echo -e "${GREEN}${BOLD}Create Dojo superuser:"
145+
tput sgr0
146+
sudo python manage.py createsuperuser
145147
sudo python manage.py loaddata product_type
146148
sudo python manage.py loaddata test_type
147149
sudo python manage.py loaddata development_environment

0 commit comments

Comments
 (0)