poj_org 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/poj_org/user.rb +7 -1
- metadata +1 -1
data/lib/poj_org/user.rb
CHANGED
@@ -43,7 +43,13 @@ module PojOrg
|
|
43
43
|
break if element.empty?
|
44
44
|
ids << element.to_i
|
45
45
|
end
|
46
|
-
|
46
|
+
unless ids.empty?
|
47
|
+
if options[:bottom] && ids.last <= options[:bottom]
|
48
|
+
ids = ids.keep_if { |id| id > options[:bottom] }
|
49
|
+
else
|
50
|
+
ids += code_ids(options.merge(top: ids.last))
|
51
|
+
end
|
52
|
+
end
|
47
53
|
ids
|
48
54
|
end
|
49
55
|
|