File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 30
30
# Ignore master key for decrypting credentials and more.
31
31
/config /master.key
32
32
33
- /data /
33
+ /data /
34
+
35
+ * .dump
36
+ .env
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class Project < ApplicationRecord
20
20
scope :matching_criteria , -> { where ( matching_criteria : true ) }
21
21
scope :with_readme , -> { where . not ( readme : nil ) }
22
22
scope :with_works , -> { where ( 'length(works::text) > 2' ) }
23
+ scope :with_repository , -> { where . not ( repository : nil ) }
23
24
24
25
def self . import_from_csv
25
26
@@ -123,7 +124,11 @@ def self.stop_words
123
124
end
124
125
125
126
def self . update_matching_criteria
126
- unreviewed . find_each { |p | p . matching_criteria = p . matching_criteria? ; p . save if p . changed? }
127
+ unreviewed . find_each ( &:update_matching_criteria )
128
+ end
129
+
130
+ def update_matching_criteria
131
+ update ( matching_criteria : matching_criteria? )
127
132
end
128
133
129
134
def self . potential_good_topics
@@ -572,7 +577,7 @@ def avatar_url
572
577
end
573
578
574
579
def matching_criteria?
575
- no_bad_topics? && good_topics? && external_users? && open_source_license? && active?
580
+ good_topics? && external_users? && open_source_license? && active?
576
581
end
577
582
578
583
def matching_topics
@@ -584,7 +589,7 @@ def no_bad_topics?
584
589
end
585
590
586
591
def good_topics?
587
- matching_topics . length > 2
592
+ matching_topics . length > 0
588
593
end
589
594
590
595
def packages_count
You can’t perform that action at this time.
0 commit comments