Skip to content

Commit

Permalink
Putting cli.py back to good
Browse files Browse the repository at this point in the history
  • Loading branch information
jcadam14 committed Feb 1, 2024
1 parent 8b9b552 commit bf38049
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions regtech_data_validator/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dataclasses import dataclass
from enum import StrEnum
import json, datatime
import json
from pathlib import Path
from typing import Annotated, Optional

Expand All @@ -19,6 +19,7 @@ class KeyValueOpt:
key: str
value: str


def parse_key_value(kv_str: str) -> KeyValueOpt:
split_str = kv_str.split('=')

Expand Down Expand Up @@ -62,7 +63,11 @@ def df_to_json(df: pd.DataFrame) -> str:
v_head = v_id_df.iloc[0]

finding_json = {
'validation': {'id': v_id_idx,'name': v_head.at['validation_name'],'description': v_head.at['validation_desc'],'severity': v_head.at['validation_severity'],
'validation': {
'id': v_id_idx,
'name': v_head.at['validation_name'],
'description': v_head.at['validation_desc'],
'severity': v_head.at['validation_severity'],
},
'records': [],
}
Expand Down

0 comments on commit bf38049

Please sign in to comment.