Skip to content

Commit

Permalink
style: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 29, 2024
1 parent aae92ab commit 29276d8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
29 changes: 14 additions & 15 deletions lib/v2/tongji/bks.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,19 @@ module.exports = async (ctx) => {
title: '同济大学本科生院',
link,
description: '同济大学本科生院通知公告',
item:
list?.toArray().map((item) => {
item = $(item);
const a = item.find('a');
const dateItem = item.find('.li-data');
const yearAndMonth = dateItem.find('span').text().split('-');
const day = dateItem.find('p').text();
const date = `${yearAndMonth[0]}-${yearAndMonth[1]}-${day}`;
return {
title: item.find('.li-tt-title').text(),
description: item.find('.intro').text(),
link: new URL(a.attr('href'), link).href,
pubDate: parseDate(date, 'YYYY-MM-DD')
};
}),
item: list?.toArray().map((item) => {
item = $(item);
const a = item.find('a');
const dateItem = item.find('.li-data');
const yearAndMonth = dateItem.find('span').text().split('-');
const day = dateItem.find('p').text();
const date = `${yearAndMonth[0]}-${yearAndMonth[1]}-${day}`;
return {
title: item.find('.li-tt-title').text(),
description: item.find('.intro').text(),
link: new URL(a.attr('href'), link).href,
pubDate: parseDate(date, 'YYYY-MM-DD'),
};
}),
};
};
1 change: 0 additions & 1 deletion lib/v2/tongji/maintainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ module.exports = {
'/bks': ['shiquda'],
'/sse/:type?': ['sgqy'],
'/yjs': ['shengmaosu'],

};
2 changes: 1 addition & 1 deletion lib/v2/tongji/radar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
docs: 'https://docs.rsshub.app/routes/university#tong-ji-da-xue',
source: ['/'],
target: '/tongji/bks',
}
},
],
sse: [
{
Expand Down
2 changes: 1 addition & 1 deletion website/docs/routes/university.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2755,7 +2755,7 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE\_TL
注意: `qttz``xytz` 在原网站等价.
</Route>

### 本科生院通知公告 {#tong-ji-da-xue-yan-jiu-sheng-yuan-tong-zhi-gong-gao}
### 本科生院通知公告 {#tong-ji-da-xue-ben-ke-sheng-yuan-tong-zhi-gong-gao}

<Route author="shiquda" example="/tongji/bks" path="/tongji/bks" radar="1" />

Expand Down

0 comments on commit 29276d8

Please sign in to comment.