Skip to content
Snippets Groups Projects
Commit 64fd0eb4 authored by Jonas Braathen's avatar Jonas Braathen
Browse files

Fix linting issues

parent f536725a
No related branches found
No related tags found
No related merge requests found
Pipeline #175411 passed
......@@ -42,18 +42,17 @@ class Command(BaseCommand):
self.schedule()
return
commit = options['commit']
commit = options["commit"]
if options["run_once"]:
with transaction.atomic():
importer = OrgregImporter()
importer.handle()
if not commit:
logger.info('Rolling back changes...')
logger.info("Rolling back changes...")
transaction.set_rollback(True)
else:
logger.info('Changes committed')
logger.info("Changes committed")
def schedule(self):
logger.info("Scheduling orgreg import task...")
......
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