Skip to content
Snippets Groups Projects
Commit 694f5803 authored by inso's avatar inso
Browse files

Correction POST certifition + sauvegarde cache wallet

parent 2b52c731
No related branches found
No related tags found
No related merge requests found
...@@ -296,7 +296,7 @@ class Application(QObject): ...@@ -296,7 +296,7 @@ class Application(QObject):
os.makedirs(os.path.join(config.parameters['home'], os.makedirs(os.path.join(config.parameters['home'],
account.name, '__cache__')) account.name, '__cache__'))
wallet_path = os.path.join(config.parameters['home'], wallet_path = os.path.join(config.parameters['home'],
account.name, '__cache__', wallet.pubkey) account.name, '__cache__', wallet.pubkey + "_wal")
with open(wallet_path, 'w') as outfile: with open(wallet_path, 'w') as outfile:
data = wallet.jsonify_caches() data = wallet.jsonify_caches()
data['version'] = __version__ data['version'] = __version__
......
...@@ -114,7 +114,7 @@ class API(object): ...@@ -114,7 +114,7 @@ class API(object):
logging.debug("POST : {0}".format(kwargs)) logging.debug("POST : {0}".format(kwargs))
post_data = QUrlQuery() post_data = QUrlQuery()
for k,v in kwargs.items(): for k,v in kwargs.items():
post_data.addQueryItem(k, v) post_data.addQueryItem(k.replace("+", "%2b"), v.replace("+", "%2b"))
url = QUrl(self.reverse_url(path)) url = QUrl(self.reverse_url(path))
url.setQuery(post_data) url.setQuery(post_data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment