caboose-rets 0.0.84 → 0.0.85
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose_rets/rets_importer.rb +2 -2
- data/lib/caboose_rets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTdiZmZhOTlkMGYxNjU2NjExYzM5MDU5YmVkOTk3YTUwYmM5MDQzYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTBhZDM2Y2ZmZDI4YzQ3ZjExZDFjYjMyM2VkZDYzMzEzYWViOTZiYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjFkMzU3YzhhNjdjMGZmYmQ3ZTY4YTUyYmE1ZTMyMjYwMTI1Mjk3MmZiZDNh
|
10
|
+
YmUxNjkyYzg3YzI0ZTkzMTk0Y2FkZDVjZjhiODA0N2JmMjAwMjhhOTk5ZDc2
|
11
|
+
Nzc4MjIyZWM0NTIyMjliMWUyM2E4Y2Y4YTQyZDU2YjFiMjBhOTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmE1ZmFiMTk5YTM0NGY4NDE2OTJlYmU1ZDY1YTZhY2M3NjUwODJlMTZlZDFk
|
14
|
+
YWM5NjNkMGI5NTkxMTE1MzY1ODQ0ZjE2NzUxMjFjZjhkMjQwMDIxM2YyYTM0
|
15
|
+
MzFmODQzZTVhNmYxNGFmODI5MmJkZmM1MmIwZDc2ZDAwZmM4MTY=
|
@@ -262,7 +262,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
|
|
262
262
|
local_ids = rows.collect{ |row| row['media_id'] }
|
263
263
|
ids_to_remove = local_ids - ids
|
264
264
|
if ids_to_remove && ids_to_remove.count > 0
|
265
|
-
query = ["delete from rets_media where media_id
|
265
|
+
query = ["delete from rets_media where media_id in (?)", ids_to_remove]
|
266
266
|
ActiveRecord::Base.connection.execute(ActiveRecord::Base.send(:sanitize_sql_array, query))
|
267
267
|
end
|
268
268
|
end
|
@@ -389,7 +389,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
|
|
389
389
|
ids_to_remove = local_ids - ids
|
390
390
|
self.log("- Found #{ids_to_remove.count} #{class_type} records in the local database that are not in the remote database.")
|
391
391
|
self.log("- Deleting #{class_type} records in the local database that shouldn't be there...")
|
392
|
-
query = ["delete from #{t} where #{k}
|
392
|
+
query = ["delete from #{t} where #{k} in (?)", ids_to_remove]
|
393
393
|
ActiveRecord::Base.connection.execute(ActiveRecord::Base.send(:sanitize_sql_array, query))
|
394
394
|
|
395
395
|
# Find any ids in the remote database that should be in the local database
|
data/lib/caboose_rets/version.rb
CHANGED