Skip to content

Commit

Permalink
Fix #271: Changed owasp.com to owasp.org. (#276)
Browse files Browse the repository at this point in the history
* changed owasp.com to owasp.org

* changed in views.py
  • Loading branch information
Roboneet authored and souravbadami committed Jun 10, 2017
1 parent 32ae900 commit fa246af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/fixtures/initial_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"model": "website.domain",
"pk": 99,
"fields": {
"name": "owasp.com",
"name": "owasp.org",
"url": "http://owasp.org",
"logo": "",
"webshot": "",
Expand Down
2 changes: 1 addition & 1 deletion website/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h1 class="page-sub-header">Featured Websites</h1>
<div>Grand Prize $100</div>
</div>
</div>
<div class="row issue_count"><div class="col-xs-12 text-right">Issues <span><a href="/domain/owasp.com/open">Open {{ open_issue_owasp }} </a></span><span><a href="/domain/owasp.com/closed"> Closed {{ closed_issue_owasp }}</a></span></div></div>
<div class="row issue_count"><div class="col-xs-12 text-right">Issues <span><a href="/domain/owasp.org/open">Open {{ open_issue_owasp }} </a></span><span><a href="/domain/owasp.org/closed"> Closed {{ closed_issue_owasp }}</a></span></div></div>
</div>
<a href="https://www.owasp.org/index.php/Bug_Bounty_Projects" target="_new">
<div class="panel-footer">
Expand Down
4 changes: 2 additions & 2 deletions website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def index(request, template="index.html"):
show_message = 'Please verify your email address'
except:
show_message = ''
open_issue_owasp = Domain.objects.get(name='owasp.com').open_issues.count()
closed_issue_owasp = Domain.objects.get(name='owasp.com').closed_issues.count()
open_issue_owasp = Domain.objects.get(name='owasp.org').open_issues.count()
closed_issue_owasp = Domain.objects.get(name='owasp.org').closed_issues.count()
context = {
'activities': Action.objects.all()[0:10],
'domains': domains,
Expand Down

0 comments on commit fa246af

Please sign in to comment.