From d242d53296711b0fa0c32f40ca4b45ec44e68c7a Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 17 Mar 2022 10:45:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/dbsql/repo_foreigntable_for_es.sql | 5 +++-- public/home/search.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/models/dbsql/repo_foreigntable_for_es.sql b/models/dbsql/repo_foreigntable_for_es.sql index 0862b0129..777633290 100644 --- a/models/dbsql/repo_foreigntable_for_es.sql +++ b/models/dbsql/repo_foreigntable_for_es.sql @@ -492,8 +492,9 @@ $def$ num_watches=NEW.num_watches, num_stars=NEW.num_stars, num_forks=NEW.num_forks, - topics=NEW.topics - alias = NEW.alias + topics=NEW.topics, + alias = NEW.alias, + lower_alias = NEW.lower_alias where id=NEW.id; end if; diff --git a/public/home/search.js b/public/home/search.js index 84bae24c9..b6aa88959 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -590,7 +590,7 @@ function getTime(UpdatedUnix,currentTime){ var days = Math.ceil(hours/24) if (days >= 30){ return Math.ceil(days/30) + getRepoOrOrg(8,isZh); - }else if(dasy >= 365){ + }else if(days >= 365){ return Math.ceil(days/365) + getRepoOrOrg(9,isZh); } return Math.ceil(hours/24) + getRepoOrOrg(7,isZh);