셀 여백 제거
This commit is contained in:
@ -38,8 +38,8 @@ def get_precipitation_summary():
|
||||
data = response.json()
|
||||
total_rainfall = 0.0
|
||||
lines = [f'<div style="text-align:center;"><h3 style="font-size:2em; text-align:center; margin: 20px 0;">[시간대별 강수량]</h3>']
|
||||
lines.append(f'<table style="min-width:400px; text-align:center; ">')
|
||||
lines.append(f'<tr><th style="border: 1px #333 solid; ">시간</th><th style="border: 1px #333 solid; ">강수량</th></tr>')
|
||||
lines.append(f'<table style="display: inline-table; min-width:400px; text-align:center; ">')
|
||||
lines.append(f'<tr><th style="border: 1px #333 solid; padding:0;">시간</th><th style="border: 1px #333 solid; padding:0;">강수량</th></tr>')
|
||||
|
||||
for item in data['response']['body']['items']['item']:
|
||||
if item['category'] == 'PCP' and item['fcstDate'] == TODAY:
|
||||
@ -47,7 +47,7 @@ def get_precipitation_summary():
|
||||
if 900 < int(time) < 2300:
|
||||
mm = parse_precip(item['fcstValue'])
|
||||
time_str = f"{time[:2]}:{time[2:]}" # '11:00'
|
||||
lines.append(f'<tr><td style="border: 1px #333 solid; ">{time_str}</td><td style="border: 1px #333 solid; ">{mm}mm</td></tr>')
|
||||
lines.append(f'<tr><td style="border: 1px #333 solid; padding:0;">{time_str}</td><td style="border: 1px #333 solid; padding:0;">{mm}mm</td></tr>')
|
||||
total_rainfall += mm
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user