sync to clockify is discovered only on project now

This commit is contained in:
iLLiCiTiT 2019-08-14 16:42:55 +02:00
parent c5c1191d13
commit 39b10d1929

View file

@ -38,6 +38,11 @@ class SyncClocify(BaseAction):
def discover(self, session, entities, event):
''' Validation '''
if len(entities) != 1:
return False
if entities[0].entity_type.lower() != "project":
return False
return True
def launch(self, session, entities, event):