Skip to content
Snippets Groups Projects
Commit dc512921 authored by Neda Moeini's avatar Neda Moeini Committed by Mohammad Torkashvand
Browse files

Update the custom geant_ids

parent 4208ca00
No related branches found
Tags 2.28
1 merge request!324Feature/manage sid and gids
...@@ -34,7 +34,7 @@ def validate_id(value: str, prefix: str, field_name: str) -> str: ...@@ -34,7 +34,7 @@ def validate_id(value: str, prefix: str, field_name: str) -> str:
err = f"{field_name} must have a numeric part after the prefix '{prefix}'." err = f"{field_name} must have a numeric part after the prefix '{prefix}'."
raise ValueError(err) from ValueError raise ValueError(err) from ValueError
if min_range <= numeric_part < max_range: if min_range <= numeric_part <= max_range:
err = f"{field_name} must not have a numeric part between 50000 and 99999." err = f"{field_name} must not have a numeric part between 50000 and 99999."
raise ValueError(err) raise ValueError(err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment