Skip to content

Commit

Permalink
merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
APTX-4869-MDZZ committed Sep 2, 2017
2 parents 4ba2b2e + 805b699 commit 031788f
Show file tree
Hide file tree
Showing 148 changed files with 49,215 additions and 392 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,7 @@ bio_nginx.conf
gunicorn.conf.py

#log
log/*
log/*

#apple
.DS_Store
1 change: 1 addition & 0 deletions 1.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions 1.txt

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion BioDesignVer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
'design',
'system',
'geneRelationship',
'gunicorn'
'gunicorn',
'biosearch'
]

MIDDLEWARE = [
Expand Down
3 changes: 2 additions & 1 deletion BioDesignVer/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
from django.conf.urls import *

urlpatterns = [
url(r'^$', RedirectView.as_view(url='/static/login_register/login_register.html')),
url(r'^$', RedirectView.as_view(url='/static/search_track/search_index.html')),
url(r'^admin/', admin.site.urls),
url(r'^accounts/', include('accounts.urls')),
url(r'^home/', include('projectManage.urls')),
url(r'^design/', include('design.urls')),
url(r'^system/', include('system.urls')),
url(r'^geneRelationship/', include('geneRelationship.urls')),
url(r'^biosearch/', include('biosearch.urls')),
]

urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
2 changes: 1 addition & 1 deletion accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ def logout(request):
try:
data = json.loads(request.body)
customerToken = data['token']
token = Token()
token = Token.objects.get(token=customerToken)
token.delete()
result = {
Expand All @@ -143,6 +142,7 @@ def logout(request):
},
}
except Exception as e:
print(str(e));
result = {
'successful': False,
'error': {
Expand Down
Empty file added biosearch/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions biosearch/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
5 changes: 5 additions & 0 deletions biosearch/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class BiosearchConfig(AppConfig):
name = 'biosearch'
19 changes: 19 additions & 0 deletions biosearch/asciitest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from elasticsearch import Elasticsearch
es = Elasticsearch()
_keyword = "Environment"
_track = "Environment"
_query = {
"query": {
"bool":{
"should":{
"multi_match": {
"query": _keyword,
"fields":["attribution"]
}
},
"must":{"match": {"track": _track}}
}
}
}
_searched = es.search(index='search_index3', doc_type='searchtest3',body=_query)
print (_searched)
Loading

0 comments on commit 031788f

Please sign in to comment.