applicationrecommendation 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applicationrecommendation.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a4099142b390eab28aa6db4638b0792b0ae12d2
|
4
|
+
data.tar.gz: 62ae463adc09db7107690fd24ae95d061d1dcf48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaf4326f2e23e8ee864f0d9345db40679a368cf9d55e25928d7a182412440715c45dae95bce82ea06c9f32d26713d6fcb7c293bb9088a81e108016fd753d3af9
|
7
|
+
data.tar.gz: be60eb119fd9554f5a6df12192736ac83676b2e39861ff36dc39220faafef43ff6bfcdf400bccdf76b690d8c4d8b40a4e131e44f4b4b66c52ea5c223349c7d0c
|
@@ -31,13 +31,15 @@
|
|
31
31
|
|
32
32
|
class ApplicationRecommendationClass < UserClass
|
33
33
|
@resultArray = []
|
34
|
-
@temp = 0
|
35
|
-
@tempObject = nil
|
36
34
|
|
37
35
|
def recommends(result,result2)
|
36
|
+
|
37
|
+
@temp = 0
|
38
|
+
@tempObject = nil
|
39
|
+
|
38
40
|
@resultArray = result
|
39
41
|
@resultArray.each do |t|
|
40
|
-
|
42
|
+
puts "#{t.person_id}===>#{t.category_id}===>#{t.count}"
|
41
43
|
if(t.count>@temp)
|
42
44
|
# puts @temp
|
43
45
|
@temp = t.count
|