vtiger 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vtiger/commands.rb +12 -1
- metadata +4 -4
data/lib/vtiger/commands.rb
CHANGED
@@ -225,7 +225,18 @@ def large_find_items_by_date_and_key_null(element,date,key, extraparam=nil)
|
|
225
225
|
querystring="select id,#{key}#{queryparams} from #{element} where createdtime like '#{y}%' and #{key} < '0' and emailoptout=0"
|
226
226
|
countstring="select count(*) from #{element} where createdtime like '#{y}%' and #{key} < '0' and emailoptout=0"
|
227
227
|
succ, values =self.large_query(countstring,querystring)
|
228
|
-
end
|
228
|
+
end
|
229
|
+
def large_find_items(element, extraparam=nil)
|
230
|
+
# NEED TO ADD QUERY SIZE CAPABILIIES
|
231
|
+
puts "in query by date #{date} and not null "
|
232
|
+
queryparams=''
|
233
|
+
queryparams=",#{extraparam}" if extraparam!=nil
|
234
|
+
t=Time.parse(date)
|
235
|
+
y=t.strftime('%Y-%m-%d')
|
236
|
+
querystring="select id,#{queryparams},emailoptout,email,lastname,firstname from #{element}"
|
237
|
+
countstring="select count(*) from #{element}"
|
238
|
+
succ, values =self.large_query(countstring,querystring)
|
239
|
+
end
|
229
240
|
def get_campaigns
|
230
241
|
puts "in get campaigns"
|
231
242
|
action_string=ERB::Util.url_encode("select id,campaignname from Campaigns;")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vtiger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 3
|
10
|
+
version: 0.6.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Sproule
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-16 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|