Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
ndamania00 committed Feb 12, 2025
1 parent 6129120 commit 94aa132
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions liminal/base/base_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
6. ArchiveDropdownOption
7. ReorderDropdownOptions
8. CreateSchema
9. UpdateEntitySchemaNameTemplate
10. UpdateSchema
11. UnarchiveSchema
12. CreateField
9. UnarchiveSchema
10. CreateField
11. UpdateEntitySchemaNameTemplate
12. UpdateSchema
13. UnarchiveField
14. UpdateField
15. ArchiveField
Expand Down
8 changes: 4 additions & 4 deletions liminal/entity_schemas/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _validate(self, benchling_service: BenchlingService) -> TagSchemaModel:


class UnarchiveEntitySchema(BaseOperation):
order: ClassVar[int] = 110
order: ClassVar[int] = 90

def __init__(self, wh_schema_name: str) -> None:
self.wh_schema_name = wh_schema_name
Expand All @@ -187,7 +187,7 @@ def _validate(self, benchling_service: BenchlingService) -> TagSchemaModel:


class UpdateEntitySchema(BaseOperation):
order: ClassVar[int] = 100
order: ClassVar[int] = 120

def __init__(
self,
Expand Down Expand Up @@ -251,7 +251,7 @@ def _validate(self, benchling_service: BenchlingService) -> TagSchemaModel:


class UpdateEntitySchemaNameTemplate(BaseOperation):
order: ClassVar[int] = 90
order: ClassVar[int] = 110

def __init__(
self,
Expand Down Expand Up @@ -283,7 +283,7 @@ def describe(self) -> str:


class CreateEntitySchemaField(BaseOperation):
order: ClassVar[int] = 120
order: ClassVar[int] = 100

def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion liminal/orm/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init_subclass__(cls, **kwargs: Any):
]
if len(sequence_constraints) > 1:
raise ValueError(
"Only one sequenceconstraint field can be set for a schema."
"Only one sequence constraint field can be set for a schema."
)
sequence_constraint = sequence_constraints[0] if sequence_constraints else None
match sequence_constraint:
Expand Down

0 comments on commit 94aa132

Please sign in to comment.