Update app.py
Browse files
app.py
CHANGED
|
@@ -744,8 +744,12 @@ async def quan_ly_hoa_chat():
|
|
| 744 |
|
| 745 |
# Đọc dữ liệu từ sheet
|
| 746 |
df = pd.read_excel(file_path, sheet_name="HOA CHAT SU DUNG")
|
|
|
|
|
|
|
|
|
|
| 747 |
df = df.fillna("")
|
| 748 |
|
|
|
|
| 749 |
# Chuẩn hóa ngày hết hạn + tính tình trạng
|
| 750 |
def xu_ly_tinh_trang(row):
|
| 751 |
try:
|
|
|
|
| 744 |
|
| 745 |
# Đọc dữ liệu từ sheet
|
| 746 |
df = pd.read_excel(file_path, sheet_name="HOA CHAT SU DUNG")
|
| 747 |
+
for col in df.columns:
|
| 748 |
+
if pd.api.types.is_datetime64_any_dtype(df[col]):
|
| 749 |
+
df[col] = df[col].dt.strftime('%Y-%m-%d')
|
| 750 |
df = df.fillna("")
|
| 751 |
|
| 752 |
+
|
| 753 |
# Chuẩn hóa ngày hết hạn + tính tình trạng
|
| 754 |
def xu_ly_tinh_trang(row):
|
| 755 |
try:
|