Skip to content

Commit

Permalink
fix(route): 中华人民共和国交通运输部统计数据文件 (#13937)
Browse files Browse the repository at this point in the history
  • Loading branch information
nczitzk authored Dec 1, 2023
1 parent bc7a386 commit 1c12d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v2/gov/mot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = async (ctx) => {
items = await Promise.all(
items.map((item) =>
ctx.cache.tryGet(item.link, async () => {
if (/\.gov\.cn/.test(item.link)) {
if (/\.gov\.cn/.test(item.link) && item.link.endsWith('.html')) {
const { data: detailResponse } = await got(item.link);

const content = cheerio.load(detailResponse);
Expand Down

0 comments on commit 1c12d6f

Please sign in to comment.