Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文档收集页面点数字错误 #1

Open
nmweizi opened this issue Oct 31, 2015 · 3 comments
Open

文档收集页面点数字错误 #1

nmweizi opened this issue Oct 31, 2015 · 3 comments

Comments

@nmweizi
Copy link

nmweizi commented Oct 31, 2015

1、doc_list.html,的bug_key都改为key_word
2、/list?都改为/doc_serach?

@mysterymask
Copy link
Owner

是的。
我会尽快修改然后更新上来。
谢谢。

@nmweizi
Copy link
Author

nmweizi commented Oct 31, 2015

mongodb服务器地址写成127.0.0.1,比较好。
下面是patch。

diff --git a/wooyun/web/app/templates/doc_list.html b/wooyun/web/app/templates/doc_list.html
index 5d6adca..734c2ca 100644
--- a/wooyun/web/app/templates/doc_list.html
+++ b/wooyun/web/app/templates/doc_list.html
@@ -43,8 +43,8 @@

{{infor.open_date}}
{{infor.bug_title}}

  •        <td style="width:10%"><a href="/list?bug_key={{infor.bug_type}}">{{infor.bug_type}}</a></td>
    
  •        <td style="width:15%"><a href="/list?bug_key={{infor.author}}">{{infor.author}}</a></td>
    
  •        <td style="width:10%"><a href="/doc_search?key_word={{infor.bug_type}}">{{infor.bug_type}}</a></td>
    
  •        <td style="width:15%"><a href="/doc_search?key_word={{infor.author}}">{{infor.author}}</a></td>
         <td style="width:24%"><a href="static/wooyun_res/htmls/{{infor.bug_id}}.html">{{infor.bug_id}}</a></td>
       </tr>
       {% endfor %}
    
    @@ -65,7 +65,7 @@
    numberOfPages: {{page_infor.records_per_page}},
    totalPages:{{page_infor.page_count}},
    onPageClicked:function(event,originalEvent,type,page){
  •                    url = "/list?bug_key={{search_params}}&&page="+page;
    
  •                    url = "/doc_search?key_word={{search_params}}&&page="+page;
                     location.href = url;
                 }
             };
    

diff --git a/wooyun/web/app/views_py/settings.py b/wooyun/web/app/views_py/settings.py
index 1ea5368..f1d000b 100644
--- a/wooyun/web/app/views_py/settings.py
+++ b/wooyun/web/app/views_py/settings.py
@@ -5,7 +5,7 @@ sys.setdefaultencoding('utf-8')

#db settings
#DB_HOST = '172.18.85.121'
-DB_HOST = '192.168.1.133'
+DB_HOST = '127.0.0.1'
DB_PORT = 27017
DB_NAME = 'wooyun'
BUG_COLLECTION_NAME = 'wooyun_bug'

diff --git a/wooyun/wooyun/settings.py b/wooyun/wooyun/settings.py
index cc998a3..65ade54 100644
--- a/wooyun/wooyun/settings.py
+++ b/wooyun/wooyun/settings.py
@@ -24,7 +24,7 @@ LOCAL_HTML_STORE = 'web/app/static/wooyun_res/htmls/'

#DB_HOST = "172.18.85.121"
-DB_HOST = '192.168.1.133'
+DB_HOST = '127.0.0.1'
DB_PORT = 27017
DB_DATABASE = "wooyun"
DB_COLLECTION_BUG = "wooyun_bug"
@@ -36,5 +36,5 @@ LOCAL_JS_PATH = "../../js/jquery-1.4.2.min.js"

PAGE_MAX_DEFAULT = 0
LOCAL_STORE_DEFAULT = 'true'
RECORDS_PER_PAGE = 20
\ No newline at end of file

@mysterymask
Copy link
Owner


当时我的数据库和代码不在一个机器上,如果在一个机器里就改成本机就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants