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);