Skip to content

Commit 2a761d8

Browse files
current iteration name
1 parent 366bcfb commit 2a761d8

File tree

1 file changed

+7
-2
lines changed
  • src/rules_validation_api

1 file changed

+7
-2
lines changed

src/rules_validation_api/app.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,13 @@ def main() -> None:
4949
try:
5050
with Path(args.config_path).open() as file:
5151
json_data = json.load(file)
52-
RulesValidation(**json_data)
53-
sys.stdout.write(f"{GREEN}Valid Config{RESET}\n")
52+
result:RulesValidation = RulesValidation(**json_data)
53+
54+
sys.stdout.write(
55+
f"{GREEN}Valid Config{RESET}\n"
56+
f"{GREEN}Current Iteration Number{RESET}{COLON_COLOR}:{RESET}{RIGHT_COLOR}"
57+
f"{result.campaign_config.current_iteration.iteration_number}{RESET}\n"
58+
)
5459

5560
# Group by class
5661
grouped = defaultdict(list)

0 commit comments

Comments
 (0)