dev-yuje commited on
Commit
2f25438
·
1 Parent(s): 1bc1479

feat: 최신 뉴스 피드 및 키워드 수집 표시 수량 확대 (뉴스 15건, 키워드 25건) 및 세로 영역 350px 확장

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -160,18 +160,18 @@ def get_db_stats() -> Dict[str, Any]:
160
  if res_techs:
161
  stats["technologies"] = res_techs["cnt"]
162
 
163
- # 2. 기술 목록 & 설명 조회 (상위 5개)
164
  res_tech_list = session.run(
165
  "MATCH (t:AITechnology) "
166
- "RETURN t.name as name, COALESCE(t.description, 'AI 혁신 기술 인프라') as desc LIMIT 5"
167
  )
168
  stats["techs_list"] = [{"name": r["name"], "desc": r["desc"]} for r in res_tech_list]
169
 
170
- # 3. 최근 기사 목록 조회 (최근 3개)
171
  res_art_list = session.run(
172
  "MATCH (a:Article) "
173
  "RETURN a.title as title, a.published_date as date, a.url as url "
174
- "ORDER BY a.published_date DESC LIMIT 3"
175
  )
176
  stats["recent_articles"] = [
177
  {"title": r["title"], "date": r["date"], "url": r["url"]}
@@ -378,7 +378,7 @@ body {
378
 
379
  /* 최근 뉴스 피드 클릭 가능한 카드 레이아웃 */
380
  .news-feed-container {
381
- max-height: 150px;
382
  overflow-y: auto;
383
  border: 1px solid rgba(196, 195, 236, 0.35);
384
  border-radius: 6px;
 
160
  if res_techs:
161
  stats["technologies"] = res_techs["cnt"]
162
 
163
+ # 2. 기술 목록 & 설명 조회 (상위 25개)
164
  res_tech_list = session.run(
165
  "MATCH (t:AITechnology) "
166
+ "RETURN t.name as name, COALESCE(t.description, 'AI 혁신 기술 인프라') as desc LIMIT 25"
167
  )
168
  stats["techs_list"] = [{"name": r["name"], "desc": r["desc"]} for r in res_tech_list]
169
 
170
+ # 3. 최근 기사 목록 조회 (최근 15개)
171
  res_art_list = session.run(
172
  "MATCH (a:Article) "
173
  "RETURN a.title as title, a.published_date as date, a.url as url "
174
+ "ORDER BY a.published_date DESC LIMIT 15"
175
  )
176
  stats["recent_articles"] = [
177
  {"title": r["title"], "date": r["date"], "url": r["url"]}
 
378
 
379
  /* 최근 뉴스 피드 클릭 가능한 카드 레이아웃 */
380
  .news-feed-container {
381
+ max-height: 350px;
382
  overflow-y: auto;
383
  border: 1px solid rgba(196, 195, 236, 0.35);
384
  border-radius: 6px;