fix: typo
[unfold.git] / portal / homeview.py
index b0249ce..b4faa8e 100644 (file)
@@ -99,7 +99,6 @@ class HomeView (FreeAccessView, ThemeView):
         env = self.default_env()
         acc_auth_cred={}
         if request.user.is_authenticated():
-            acc_auth_cred='N/A'
             ## check user is pi or not
             platform_query  = Query().get('local:platform').select('platform_id','platform','gateway_type','disabled')
             account_query  = Query().get('local:account').select('user_id','platform_id','auth_type','config')
@@ -108,7 +107,7 @@ class HomeView (FreeAccessView, ThemeView):
             account_details = execute_query(self.request, account_query)
             for platform_detail in platform_details:
                 for account_detail in account_details:
-                    if 'platform_id' in platform_details:
+                    if 'platform_id' in platform_detail:
                         if platform_detail['platform_id'] == account_detail['platform_id']:
                             if 'config' in account_detail and account_detail['config'] is not '':
                                 account_config = json.loads(account_detail['config'])