mirror of
				https://github.com/brain-tec/account_ebics.git
				synced 2025-11-04 07:00:35 +00:00 
			
		
		
		
	fix migration script
This commit is contained in:
		@@ -22,7 +22,7 @@ def _ebics_config_upgrade(env, version):
 | 
				
			|||||||
        keys_fn_old = cfg_data['ebics_keys']
 | 
					        keys_fn_old = cfg_data['ebics_keys']
 | 
				
			||||||
        ebics_keys_root = os.path.dirname(keys_fn_old)
 | 
					        ebics_keys_root = os.path.dirname(keys_fn_old)
 | 
				
			||||||
        if os.path.isfile(keys_fn_old):
 | 
					        if os.path.isfile(keys_fn_old):
 | 
				
			||||||
            keys_fn = ebics_keys_root + '/' + cfg_data['ebics_user']
 | 
					            keys_fn = ebics_keys_root + '/' + cfg_data['ebics_user'] + '_keys'
 | 
				
			||||||
            os.rename(keys_fn_old, keys_fn)
 | 
					            os.rename(keys_fn_old, keys_fn)
 | 
				
			||||||
        state = cfg_data['state'] == 'active' and 'confirm' or 'draft'
 | 
					        state = cfg_data['state'] == 'active' and 'confirm' or 'draft'
 | 
				
			||||||
        cfg.write({
 | 
					        cfg.write({
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user