rawgento_db 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 073908a56050732610c441d52960bd179f77c1a8
4
- data.tar.gz: be709d25495f35be48031cdabce676cfbf86e6de
3
+ metadata.gz: f126b9d037e291509e4e149fece44f4450506a45
4
+ data.tar.gz: 9d9d1272743d6deb392f9ff2784990f3879ae866
5
5
  SHA512:
6
- metadata.gz: 43130d83d1f8aa1d42835d2fbf5f610ebe2476af0c63d743bc585c34efe3d77abb17834eccf25900eac4c80cc673ed4a8f835450ce62178af24bacf6c2dad2d6
7
- data.tar.gz: 9fd2ec49f9b16eb4794120d18297ff02cdfe91d84a11299364f69930e2ab311a48e0b6e128a4f1c151ad263bd66ed8a71720724aef8bd55e3be4d3fed7578472
6
+ metadata.gz: b8fe8be150648f8900d6b041ce507f9087e4870a8a90cb148b0b51b4aa88a773b83ea3ed44bed46ab33ba272953e5095a48114bda940134bc82f6c7872de3cae
7
+ data.tar.gz: 2e7fa8cc0e1bfffb0b34b1fa86702704f9d867f3c475327785eda8390bfbec9c2b95245f42a0f15f2c8897befcc20185c2329227f662f11b732f26d7a8108795
@@ -47,11 +47,11 @@ module RawgentoDB
47
47
  def self.set_available_on_stock product_id, settings=RawgentoDB.settings
48
48
  result = client(settings).query(
49
49
  "SELECT is_in_stock FROM cataloginventory_stock_item "\
50
- "WHERE product_id = %d AND is_in_stock = 0 AND qty > 0", product_id)
50
+ "WHERE product_id = %d AND is_in_stock = 0 AND qty > 0" % product_id)
51
51
  if result.length && result[0] == 0
52
52
  result = client(settings).query(
53
53
  "UPDATE cataloginventory_stock_item SET is_in_stock = 1 "\
54
- "WHERE product_id = %d", product_id)
54
+ "WHERE product_id = %d" % product_id)
55
55
  result
56
56
  else
57
57
  "unclear what happened"
@@ -1,3 +1,3 @@
1
1
  module RawgentoDB
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rawgento_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Wolfsteller