Skip to content

Fix init of FilledOrder from history op#141

Merged
xeroc merged 1 commit intobitshares:developfrom
bitphage:fix-filled-order-history
Sep 27, 2018
Merged

Fix init of FilledOrder from history op#141
xeroc merged 1 commit intobitshares:developfrom
bitphage:fix-filled-order-history

Conversation

@bitphage
Copy link
Copy Markdown
Contributor

@bitphage bitphage commented Sep 6, 2018

Fixes the following:

o = FilledOrder(entry, bitshares_instance=bitshares, base_asset=Asset('USD'))

File "/home/vvk/.local/share/virtualenvs/market-scripts-BfRrkhQ4/src/bitshares/bitshares/price.py", line 568, in init
base_asset = kwargs.get("base_asset", order["receives"]["asset_id"])
TypeError: list indices must be integers or slices, not str

Fixes the following:

    o = FilledOrder(entry, bitshares_instance=bitshares, base_asset=Asset('USD'))
  File "/home/vvk/.local/share/virtualenvs/market-scripts-BfRrkhQ4/src/bitshares/bitshares/price.py", line 568, in __init__
    base_asset = kwargs.get("base_asset", order["receives"]["asset_id"])
TypeError: list indices must be integers or slices, not str
@codecov-io
Copy link
Copy Markdown

codecov-io commented Sep 6, 2018

Codecov Report

Merging #141 into develop will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           develop    #141   +/-   ##
=======================================
  Coverage     44.3%   44.3%           
=======================================
  Files           34      34           
  Lines         3636    3636           
  Branches       759     759           
=======================================
  Hits          1611    1611           
  Misses        1818    1818           
  Partials       207     207
Impacted Files Coverage Δ
bitshares/price.py 48.3% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc0f7ab...9ce8068. Read the comment docs.

@xeroc xeroc merged commit f974ef5 into bitshares:develop Sep 27, 2018
@xeroc
Copy link
Copy Markdown
Member

xeroc commented Sep 27, 2018

good catch .. thanks

xeroc added a commit that referenced this pull request Oct 11, 2018
Release candidate 1 - 0.2.0

Changelog
---------

0c094ef (HEAD -> master) Merge branch 'release/0.2.0rc1'
299ea58 (release/0.2.0rc1) version bump
35e5f5a (origin/develop, develop) simplify bitsharesbase.account
71f391b Merge pull request #147 from bitfag/fix-order-invert-repr
357aa63 Adjust "for_sale" when invert()-ing an Order
5924ac1 Allow to read more trading data #111
26a72fc Commenting #132
f1b27d1 Set default expiration to 30 seconds #132
bd69b2c Fix bitshares->blockchain attrribute #132
a19b9ed Fix #136
60eb2b9 Add custom operation
f616874 Revert "fix Vesting"
b430d3b Set default order expiration to 1yr
a949570 fix Vesting
f70f20f Ensure we don't through in case 'secs=None'
024ad38 Requirement for pygraphene>=1.0.0
0dabd9a Use PublicKey's internal sorting algorithm
1f45a03 reenable tox versions of python
8322ae9 Merge branch 'feature/storage-models' into develop
d67d863 Merge branch 'develop' into feature/storage-models
f974ef5 Merge pull request #141 from bitfag/fix-filled-order-history
8b7b134 Fix incompatibility with new graphene framework
9ce8068 Fix init of FilledOrder from history op
51c2277 Fix unittests for pygraphene@develop
72989a8 Merge branch 'develop' into feature/storage-models
dc0f7ab Merge tag '0.1.22' into develop
803f828 further improvements
671c837 Merge branch 'develop' into feature/storage-models
305efe2 Raise Exception in case the key has been included already
5b2736a fix store to deal with proper sqlite file etc
d715357 migrate more stuff to pygraphene when dealing with objects and operations
3b8070f migrate tests to pygraphene
4bf5c1b clenaup storage by moving to graphenelib
7e5ff23 unit tests now with fixtures
2cdaabd Finalize storage
f5e7ede call to obtain only the store
55ab8d9 new documentation for stores
2f85c74 Finalize new API for Stores
94b2820 finalize interface
567e03b nicer interface
1e46d72 Storage, now also allows encrypted keys
79aa053 BaseKey implemnentation
c7132c5 setup BaseConfig
d90fe15 separate storage into subfolder
xeroc added a commit that referenced this pull request Oct 16, 2018
Release 0.2.0

Please see the content of RELEASE_NOTES.md!

Changelog
---------

3ab4a35 (HEAD -> master) Merge branch 'release/0.2.0'
eab5366 (release/0.2.0) bump required version of pygraphene
77feeb8 Merge remote-tracking branch 'origin/develop' into release/0.2.0
ee656d1 (origin/develop) Merge pull request #150 from jhtitor/market_trades
c9845f8 Fix potential infinite generator in `Market.trades`.
fa614ab hotfix #149
156f617 update of release notes
079081f Version bump
4554ea6 Release notes
0d89adb Allow to manually provide a wallet instance if needed
9f257dc Merge tag '0.2.0rc2' into develop
ee4d8ac (tag: 0.2.0rc2, origin/master, origin/HEAD) Merge branch 'release/0.2.0rc2'
94448ac require proper version of pygraphene
352074d fix setup.py URL
2fd5638 Merge tag '0.2.0rc1' into develop
0c094ef (tag: 0.2.0rc1) Merge branch 'release/0.2.0rc1'
299ea58 version bump
35e5f5a simplify bitsharesbase.account
71f391b Merge pull request #147 from bitfag/fix-order-invert-repr
357aa63 Adjust "for_sale" when invert()-ing an Order
5924ac1 Allow to read more trading data #111
26a72fc Commenting #132
f1b27d1 Set default expiration to 30 seconds #132
bd69b2c Fix bitshares->blockchain attrribute #132
a19b9ed Fix #136
60eb2b9 Add custom operation
f616874 Revert "fix Vesting"
b430d3b Set default order expiration to 1yr
a949570 fix Vesting
f70f20f Ensure we don't through in case 'secs=None'
024ad38 Requirement for pygraphene>=1.0.0
0dabd9a Use PublicKey's internal sorting algorithm
1f45a03 reenable tox versions of python
8322ae9 Merge branch 'feature/storage-models' into develop
d67d863 Merge branch 'develop' into feature/storage-models
f974ef5 Merge pull request #141 from bitfag/fix-filled-order-history
8b7b134 Fix incompatibility with new graphene framework
9ce8068 Fix init of FilledOrder from history op
51c2277 Fix unittests for pygraphene@develop
72989a8 Merge branch 'develop' into feature/storage-models
dc0f7ab Merge tag '0.1.22' into develop
803f828 further improvements
671c837 Merge branch 'develop' into feature/storage-models
305efe2 Raise Exception in case the key has been included already
5b2736a fix store to deal with proper sqlite file etc
d715357 migrate more stuff to pygraphene when dealing with objects and operations
3b8070f migrate tests to pygraphene
4bf5c1b clenaup storage by moving to graphenelib
7e5ff23 unit tests now with fixtures
2cdaabd Finalize storage
f5e7ede call to obtain only the store
55ab8d9 new documentation for stores
2f85c74 Finalize new API for Stores
94b2820 finalize interface
567e03b nicer interface
1e46d72 Storage, now also allows encrypted keys
79aa053 BaseKey implemnentation
c7132c5 setup BaseConfig
d90fe15 separate storage into subfolder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants