📦 Initialize Geulbeot structure and merge Prompts & test projects

This commit is contained in:
2026-03-05 11:32:29 +09:00
commit 555a954458
687 changed files with 205247 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
def format_date(date_str: str, source: str) -> str:
"""날짜 형식을 YYYY-MM-DD 로 변환"""
try:
match = re.search(r'\d{4}-\d{2}-\d{2}', date_str)
if match:
return match.group(0)
if source == '연합뉴스':
return datetime.strptime(date_str, '%m-%d %H:%M').strftime('2024-%m-%d')
return date_str
except Exception:
return date_str