From 781657204e8a8137664d60d60c74ff0c4fa7f1b8 Mon Sep 17 00:00:00 2001 From: Florian Knappers <73856313+JJFlorian@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:39:50 +0200 Subject: [PATCH] ruff --- .../0026_alter_uploadtask_status.py | 19 ++++++++++++++----- gmw/serializers.py | 2 +- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/api/migrations/0026_alter_uploadtask_status.py b/api/migrations/0026_alter_uploadtask_status.py index 2e68e5d..42c0bae 100644 --- a/api/migrations/0026_alter_uploadtask_status.py +++ b/api/migrations/0026_alter_uploadtask_status.py @@ -4,15 +4,24 @@ class Migration(migrations.Migration): - dependencies = [ - ('api', '0025_alter_importtask_progress'), + ("api", "0025_alter_importtask_progress"), ] operations = [ migrations.AlterField( - model_name='uploadtask', - name='status', - field=models.CharField(blank=True, choices=[('PENDING', 'Pending'), ('PROCESSING', 'Processing'), ('COMPLETED', 'Completed'), ('FAILED', 'Failed')], default='PENDING', max_length=20), + model_name="uploadtask", + name="status", + field=models.CharField( + blank=True, + choices=[ + ("PENDING", "Pending"), + ("PROCESSING", "Processing"), + ("COMPLETED", "Completed"), + ("FAILED", "Failed"), + ], + default="PENDING", + max_length=20, + ), ), ] diff --git a/gmw/serializers.py b/gmw/serializers.py index 498a28b..e461e59 100644 --- a/gmw/serializers.py +++ b/gmw/serializers.py @@ -14,7 +14,7 @@ class Meta: model = gmw_models.GMW fields = "__all__" - def get_linked_gmns(self, obj) ->list: + def get_linked_gmns(self, obj) -> list: try: linked_gmns = set( measuringpoint.gmn.uuid