Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
JJFlorian committed Apr 3, 2024
1 parent 054cfaf commit 7816572
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions api/migrations/0026_alter_uploadtask_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
),
]
2 changes: 1 addition & 1 deletion gmw/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7816572

Please sign in to comment.