Avoid importing Harvest times for which timer is still running
This commit is contained in:
parent
ac653d25f1
commit
e79686b5b7
|
@ -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…
Reference in a new issue