openfree commited on
Commit
2e9e5d7
β€’
1 Parent(s): 5afac0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -223,9 +223,10 @@ def get_vercel_deployments():
223
 
224
  def get_vercel_card(deployment, index):
225
  """Generate HTML card for a Vercel deployment"""
226
- # URL ν˜•μ‹ μˆ˜μ •
227
  raw_url = deployment.get('url', '')
228
- url = f"{raw_url}.vercel.app" if not raw_url.endswith('.vercel.app') else raw_url
 
229
 
230
  created = format_timestamp(deployment.get('created'))
231
  name = deployment.get('name', 'Unnamed Project')
@@ -273,7 +274,7 @@ def get_vercel_card(deployment, index):
273
  <strong>Created:</strong> πŸ“… {created}
274
  </p>
275
  <p style='margin: 8px 0;'>
276
- <strong>URL:</strong> πŸ”— {url}
277
  </p>
278
  </div>
279
  <div style='margin-top: 20px;'>
 
223
 
224
  def get_vercel_card(deployment, index):
225
  """Generate HTML card for a Vercel deployment"""
226
+ # URLμ—μ„œ 첫 6κΈ€μžλ§Œ μΆ”μΆœν•˜μ—¬ vercel.app 도메인 ꡬ성
227
  raw_url = deployment.get('url', '')
228
+ project_name = raw_url[:6] if len(raw_url) >= 6 else raw_url # 첫 6κΈ€μžλ§Œ μΆ”μΆœ
229
+ url = f"{project_name}.vercel.app" # μƒˆλ‘œμš΄ URL ν˜•μ‹ 적용
230
 
231
  created = format_timestamp(deployment.get('created'))
232
  name = deployment.get('name', 'Unnamed Project')
 
274
  <strong>Created:</strong> πŸ“… {created}
275
  </p>
276
  <p style='margin: 8px 0;'>
277
+ <strong>URL:</strong> πŸ”— https://{url}
278
  </p>
279
  </div>
280
  <div style='margin-top: 20px;'>