Merge pull request #641 from wozz/640

Update create current unix time
This commit is contained in:
ThomasV 2014-04-01 11:17:48 +02:00
commit e12ac7f9a1

View File

@ -6,6 +6,7 @@ import decimal
import httplib import httplib
import json import json
import threading import threading
import time
import re import re
from decimal import Decimal from decimal import Decimal
from electrum.plugins import BasePlugin from electrum.plugins import BasePlugin
@ -421,7 +422,7 @@ class Plugin(BasePlugin):
newtx = self.wallet.get_tx_history() newtx = self.wallet.get_tx_history()
v = newtx[[x[0] for x in newtx].index(str(item.data(0, Qt.UserRole).toPyObject()))][3] v = newtx[[x[0] for x in newtx].index(str(item.data(0, Qt.UserRole).toPyObject()))][3]
tx_info = {'timestamp':int(datetime.datetime.now().strftime("%s")), 'value': v } tx_info = {'timestamp':int(time.time()), 'value': v }
pass pass
tx_time = int(tx_info['timestamp']) tx_time = int(tx_info['timestamp'])
if cur_exchange == "CoinDesk": if cur_exchange == "CoinDesk":