fix #4227
This commit is contained in:
@@ -34,7 +34,7 @@ from functools import wraps
|
|||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
from .import util
|
from .import util
|
||||||
from .util import bfh, bh2u, format_satoshis, json_decode, print_error
|
from .util import bfh, bh2u, format_satoshis, json_decode, print_error, json_encode
|
||||||
from .import bitcoin
|
from .import bitcoin
|
||||||
from .bitcoin import is_address, hash_160, COIN, TYPE_ADDRESS
|
from .bitcoin import is_address, hash_160, COIN, TYPE_ADDRESS
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
@@ -451,7 +451,7 @@ class Commands:
|
|||||||
from .exchange_rate import FxThread
|
from .exchange_rate import FxThread
|
||||||
fx = FxThread(self.config, None)
|
fx = FxThread(self.config, None)
|
||||||
kwargs['fx'] = fx
|
kwargs['fx'] = fx
|
||||||
return self.wallet.get_full_history(**kwargs)
|
return json_encode(self.wallet.get_full_history(**kwargs))
|
||||||
|
|
||||||
@command('w')
|
@command('w')
|
||||||
def setlabel(self, key, label):
|
def setlabel(self, key, label):
|
||||||
|
|||||||
Reference in New Issue
Block a user