Skip to content

Commit

Permalink
fix review remark list(ImportState)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-peschke committed Sep 18, 2023
1 parent b509233 commit 845b347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openslides_backend/action/mixins/import_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def update_instance(self, instance: Dict[str, Any]) -> Dict[str, Any]:
raise ActionException(
f"Wrong id doesn't point on {self.import_name} import data."
)
if worker.get("state") not in ImportState.__members__.values():
if worker.get("state") not in list(ImportState):
raise ActionException(
"Error in import: Missing valid state in stored worker."
)
Expand Down

0 comments on commit 845b347

Please sign in to comment.