trustie2 filts the projects whose filtration is 0
This commit is contained in:
parent
41ffbe8b74
commit
b8720dd0c1
|
@ -1,8 +0,0 @@
|
|||
/datamonitor/src/main/java/com/ossean/datamonitor/Main.java
|
||||
/datamonitor/target/classes/com/ossean/datamonitor/Main.class
|
||||
/datamonitor/txt/crawlTables.txt
|
||||
/datamonitor/txt/extractTables.txt
|
||||
/datamonitor/log/*
|
||||
/datamonitor/target/
|
||||
/datamonitor/#.project
|
||||
/datamonitor/#/.settings
|
|
@ -1,9 +0,0 @@
|
|||
/match_program/target/
|
||||
/match_program/.project
|
||||
/match_program/.settings
|
||||
/match_program/memosLuceneIndex
|
||||
/match_program/prjsLuceneIndex
|
||||
/match_program/record.txt
|
||||
/match_program/log/*
|
||||
/match_program/tagIndexDir
|
||||
/match_program/testIndex
|
Binary file not shown.
|
@ -1,8 +0,0 @@
|
|||
/new_osseanextractor/target
|
||||
/new_osseanextractor/.settings
|
||||
/new_osseanextractor/log/*
|
||||
/new_osseanextractor/error
|
||||
/new_osseanextractor/src/main/resources
|
||||
/new_osseanextractor/cursor
|
||||
/new_osseanextractor/src/test/java/net/trustie/modeltest
|
||||
/new_osseanextractor.DS_Store
|
|
@ -1,9 +0,0 @@
|
|||
/ow2_match/target/
|
||||
/ow2_match/.project
|
||||
/ow2_match/.settings
|
||||
/ow2_match/memosLuceneIndex
|
||||
/ow2_match/prjsLuceneIndex
|
||||
/ow2_matchrecord.txt
|
||||
/ow2_match/log/*
|
||||
/ow2_match/tagIndexDir
|
||||
/ow2_match/testIndex
|
|
@ -1,4 +0,0 @@
|
|||
/project_manager/target/
|
||||
/project_manager/log/*
|
||||
/project_manager/.project
|
||||
/project_manager/.settings
|
|
@ -1,13 +0,0 @@
|
|||
/t_flow/.idea
|
||||
/t_flow/.settings
|
||||
/t_flow/libs
|
||||
/t_flow/target
|
||||
/t_flow/log
|
||||
/t_flow/src/test
|
||||
/t_flow/src/main/resources/flow.xml
|
||||
/t_flow/src/main/resources/spring/applicationContext-myBatis.xml
|
||||
/t_flow/src/main/resources/spring/applicationContext.xml
|
||||
/t_flow/bin/resources/spring/*
|
||||
!/t_flow/bin/start.sh
|
||||
/t_flow/bin/resources/flow.xml
|
||||
/t_flow/.project
|
|
@ -1,6 +0,0 @@
|
|||
/transfertknowledeandtagmatch/target/
|
||||
/transfertknowledeandtagmatch/.settings
|
||||
/transfertknowledeandtagmatch/bin/resources/*
|
||||
!/transfertknowledeandtagmatch/bin/resources/*.example
|
||||
/transfertknowledeandtagmatch/log
|
||||
/transfertknowledeandtagmatch/.project
|
|
@ -1,16 +0,0 @@
|
|||
/trustie2/*.swp
|
||||
/trustie2/.project
|
||||
/trustie2/.idea
|
||||
/trustie2/.bundle
|
||||
/trustie2/config/database.yml
|
||||
/trustie2/config/sunspot.yml
|
||||
/trustie2/files/*
|
||||
/trustie2/log/*
|
||||
/trustie2/tmp/*
|
||||
/trustie2/public/images/avatars/*
|
||||
/trustie2/Gemfile.lock
|
||||
/trustie2/db/schema.rb
|
||||
/trustie2/config/puma.rb
|
||||
!/trustie2/solr/conf
|
||||
!/trustie2/solr/solr.xml
|
||||
/trustie2/solr/*
|
|
@ -28,7 +28,7 @@ class OpenSourceProjectsController < ApplicationController
|
|||
@projects_count = params[:topnum].to_i
|
||||
end
|
||||
@projects_pages = Paginator.new @projects_count, per_page_option, params['page']
|
||||
@open_source_projects = OpenSourceProject.order("composite_score DESC").offset(@projects_pages.offset).limit(@projects_pages.per_page)
|
||||
@open_source_projects = OpenSourceProject.where("filtration != 0").order("composite_score DESC").offset(@projects_pages.offset).limit(@projects_pages.per_page)
|
||||
@bugs = RelativeBug.order('created_time desc').limit(8)
|
||||
@bugs=nil
|
||||
respond_to do |format|
|
||||
|
@ -222,6 +222,7 @@ class OpenSourceProjectsController < ApplicationController
|
|||
language << @language
|
||||
#search_words << ' ' + @language if @language
|
||||
search = OpenSourceProject.search do
|
||||
without(:filtration,0)
|
||||
with(:created_time, Date.new(params[:created_time].to_i, 01, 01)..Date.new(params[:created_time].to_i+1, 01, 01)) if params[:created_time].present? && !('earlier'.eql? params[:created_time])
|
||||
with(:created_time, Date.new(1970, 01, 01)..Date.new(2010, 01, 01)) if params[:created_time].present? && ('earlier'.eql? params[:created_time])
|
||||
all do
|
||||
|
@ -425,7 +426,7 @@ class OpenSourceProjectsController < ApplicationController
|
|||
@projects_count=OpenSourceProject.count
|
||||
@posts_count = RelativeMemo.count
|
||||
#@open_source_projects=OpenSourceProject.find_hot_osps(20)
|
||||
@projects_for_cloud = OpenSourceProject.order("composite_score desc").limit(60)
|
||||
@projects_for_cloud = OpenSourceProject.where("filtration != 0").order("composite_score desc").limit(60)
|
||||
|
||||
|
||||
render :layout => "base_welcome"
|
||||
|
|
|
@ -45,7 +45,8 @@ class OpenSourceProject < ActiveRecord::Base
|
|||
text :tags
|
||||
text :tags_for_search
|
||||
text :language, :stored => false
|
||||
|
||||
|
||||
integer :filtration
|
||||
integer :view_num_local
|
||||
integer :composite_score
|
||||
integer :relative_memos_num
|
||||
|
|
|
@ -38,19 +38,19 @@ class RelativeMemo < ActiveRecord::Base
|
|||
acts_as_attachable
|
||||
|
||||
#solr search
|
||||
searchable do
|
||||
text :subject
|
||||
integer :replies_num
|
||||
integer :parent_id
|
||||
integer :view_num_crawled
|
||||
integer :view_num_trustie
|
||||
integer :collection_num
|
||||
time :created_time
|
||||
text :tags
|
||||
string :source, :stored => false
|
||||
#join(:osp_id, :target => RelativeMemoToOpenSourceProject, :type => :integer, :join => { :from => :relative_memo_id, :to => :id }, :as => 'osp_id')
|
||||
#join(:relative_memo_id, :target => RelativeMemoToOpenSourceProject, :type => :integer, :join => { :from => :relative_memo_id, :to => :id }, :as => 'relative_memo_id')
|
||||
end
|
||||
# searchable do
|
||||
# text :subject
|
||||
# integer :replies_num
|
||||
# integer :parent_id
|
||||
# integer :view_num_crawled
|
||||
# integer :view_num_trustie
|
||||
# integer :collection_num
|
||||
# time :created_time
|
||||
# text :tags
|
||||
# string :source, :stored => false
|
||||
# #join(:osp_id, :target => RelativeMemoToOpenSourceProject, :type => :integer, :join => { :from => :relative_memo_id, :to => :id }, :as => 'osp_id')
|
||||
# #join(:relative_memo_id, :target => RelativeMemoToOpenSourceProject, :type => :integer, :join => { :from => :relative_memo_id, :to => :id }, :as => 'relative_memo_id')
|
||||
# end
|
||||
|
||||
belongs_to :last_reply, :class_name => 'RelativeMemo', :foreign_key => 'last_reply_id'
|
||||
# acts_as_searchable :column => ['subject', 'content'],
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
/update_tags/target/
|
||||
/update_tags/.settings
|
||||
/update_tags/bin/resources/*
|
||||
!/update_tags/bin/resources/*.example
|
||||
/update_tags/log
|
||||
/update_tags/.project
|
Loading…
Reference in New Issue