Avoid importing Harvest times for which timer is still running
This commit is contained in:
		
							parent
							
								
									ac653d25f1
								
							
						
					
					
						commit
						e79686b5b7
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -223,6 +223,10 @@ class HarvestTimeEntryImporter(FromHarvest, rattail_harvest_importing.model.Harv | |||
|         if not data: | ||||
|             return | ||||
| 
 | ||||
|         if entry['is_running']: | ||||
|             log.warning("Harvest time entry is still running: %s", entry) | ||||
|             return | ||||
| 
 | ||||
|         data['user_id'] = entry['user']['id'] | ||||
|         data['client_id'] = entry['client']['id'] | ||||
|         data['task_id'] = entry['task']['id'] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar