From 64fd0eb4f10e83a4dc0b838b8702098f47f3d45a Mon Sep 17 00:00:00 2001 From: Jonas Braathen <jonas.braathen@usit.uio.no> Date: Tue, 3 Jan 2023 15:59:58 +0100 Subject: [PATCH] Fix linting issues --- greg/management/commands/import_from_orgreg.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/greg/management/commands/import_from_orgreg.py b/greg/management/commands/import_from_orgreg.py index 13dff58b..b6603007 100644 --- a/greg/management/commands/import_from_orgreg.py +++ b/greg/management/commands/import_from_orgreg.py @@ -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...") -- GitLab