Skip to content

Commit 7e06f35

Browse files
committed
removed non used function
Signed-off-by: Joao Tarla <[email protected]>
1 parent 5137cf1 commit 7e06f35

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

langgraph_agent_with_genai/src/jlibspython/oracledb_utils.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -140,25 +140,6 @@ def parse_date(date_str):
140140
logger.warning(f"Invalid date format: {date_str}")
141141
return None
142142

143-
144-
def parse_date_old(date_str):
145-
if not date_str:
146-
return None
147-
input_formats = ("%Y-%m-%d", "%Y-%m-%dT%H:%M:%S", "%Y-%m-%d %H:%M:%S")
148-
for fmt in input_formats:
149-
try:
150-
dt = datetime.strptime(date_str, fmt)
151-
# Escolhe o formato de saída com ou sem hora
152-
if fmt == "%Y-%m-%d":
153-
return dt.strftime("%Y-%m-%d")
154-
else:
155-
return dt.strftime("%Y-%m-%d %H:%M:%S")
156-
except ValueError:
157-
continue
158-
logger.warning(f"Invalid date format: {date_str}")
159-
return None
160-
161-
162143
def execute_ddl(sql):
163144
try:
164145
conn = getOracleConnection()

0 commit comments

Comments
 (0)