From 4534240b0be4a4db0dd442c2259a8745d0af12f7 Mon Sep 17 00:00:00 2001
From: Inso <insomniak.fr@gmail.com>
Date: Sun, 4 Jan 2015 15:28:04 +0100
Subject: [PATCH] Fixing first cache refreshing bug

---
 src/cutecoin/core/app.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cutecoin/core/app.py b/src/cutecoin/core/app.py
index 4a49594b..a88292c6 100644
--- a/src/cutecoin/core/app.py
+++ b/src/cutecoin/core/app.py
@@ -97,8 +97,8 @@ class Application(object):
                 json_data = open(wallet_path, 'r')
                 data = json.load(json_data)
                 wallet.cache.load_from_json(data)
-                for community in account.communities:
-                    wallet.cache.refresh(community)
+            for community in account.communities:
+                wallet.cache.refresh(community)
 
     def save(self, account):
         with open(config.parameters['data'], 'w') as outfile:
-- 
GitLab