Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
jason5ng32 committed Feb 25, 2024
1 parent e2b90b5 commit e05c289
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 30 deletions.
1 change: 0 additions & 1 deletion api/getlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ async function getdata() {
data[filename] = readFileSync(`./api/datas/${filename}.json`, 'utf8');
data[filename] = JSON.parse(data[filename]);
}
writeFileSync('./api/datas.json', JSON.stringify(data, null, 2));
return data;

};
Expand Down
24 changes: 0 additions & 24 deletions docs/ics/index.html

This file was deleted.

10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ <h1>财报日历订阅生成器</h1>
<h2>使用方法:</h2>
<p>直接在日历软件里,选择下面任意 1 个 ics 链接,并添加:</p>
<ul>
<li><a href="https://stock.retire.money/ics/sp500.ics">标普 500 财报日历</a></li>
<li><a href="https://stock.retire.money/ics/dow30.ics">道琼斯 30 财报日历</a></li>
<li><a href="https://stock.retire.money/ics/nasdaq100.ics">纳斯达克 100 财报日历</a></li>
<li><a href="https://stock.retire.money/ics/selected.ics">阿禅关注财报日历</a></li>
<li><a href="https://stock.retire.money/ics/all.ics">所有财报日历</a></li>
<li><a href="ics/sp500.ics">标普 500 财报日历</a></li>
<li><a href="ics/dow30.ics">道琼斯 30 财报日历</a></li>
<li><a href="ics/nasdaq100.ics">纳斯达克 100 财报日历</a></li>
<li><a href="ics/selected.ics">阿禅关注财报日历</a></li>
<li><a href="ics/all.ics">所有财报日历</a></li>
</ul>
<p>备注:阿禅就是这个项目的作者,本来是自己用的工具,开源了出来。</p>
</body>
Expand Down
2 changes: 2 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ dotenv.config();
const app = express();
const port = process.env.PORT || 18302;

// 静态文件
app.use('/', express.static('./docs'));

// 计划任务
schedule.scheduleJob('17 18 * * *', function () {
Expand Down

0 comments on commit e05c289

Please sign in to comment.