[edit] reformat string only if certain prefix is found
This commit is contained in:
		
							parent
							
								
									f075970f5e
								
							
						
					
					
						commit
						14048d6784
					
				| @ -747,7 +747,10 @@ class MainWindow(QMainWindow): | ||||
|             phase['lpp'] = lpp | ||||
|             phase['spe'] = spe | ||||
|             try: | ||||
|                 phase['picker'] = str(pick.method_id).split('/')[1] | ||||
|                 picker = str(pick.method_id) | ||||
|                 if picker.startswith('smi:local/'): | ||||
|                     picker = picker.split('smi:local/')[1] | ||||
|                 phase['picker'] = picker | ||||
|             except IndexError: | ||||
|                 pass | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user