Skip to content
Snippets Groups Projects
Commit dfbd9fc8 authored by Olivier Le Brouster's avatar Olivier Le Brouster
Browse files

fix: estimsync command

parent a005a6d2
No related branches found
No related tags found
No related merge requests found
......@@ -43,9 +43,6 @@ class Command(BaseCommand):
for (event, data) in events:
if not wrapper.has_to_add(event):
continue
errors = wrapper.validate(event, data)
if errors:
if verbosity > 0:
......@@ -53,9 +50,8 @@ class Command(BaseCommand):
if verbosity > 1:
for error in errors:
print ' - {}'.format(error)
else:
elif wrapper.has_to_add(event):
updated, created = wrapper.create_or_update(event, data, production=not dry_run)
if verbosity > 0:
if created:
print '* CREATION: {} - {} - {}'.format(event.pk, data['date_debut'], event)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment