Skip to content

Commit 854b094

Browse files
author
lucifer
committed
fix: 我的题解
1 parent d80aa79 commit 854b094

File tree

3 files changed

+2913
-3
lines changed

3 files changed

+2913
-3
lines changed

Diff for: .github/workflows/schedule.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: daily
22
on:
3-
push:
43
schedule:
54
- cron: "0 16 * * *"
65

Diff for: routes/my.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { success, fail } = require("../utils/request");
77
router.get("/api/v1/my/solutions", async (ctx) => {
88
if (ctx.session.user.login in solutions) {
99
ctx.body = success(
10-
solutions[ctx.session.user.login].map((q, i) => ({
10+
solutions[ctx.session.user.login].filter(Boolean).map((q, i) => ({
1111
...q,
1212
title: (officialSolution[i + 1] || {}).title || "",
1313
}))

Diff for: static/my/solutions.json

+2,912-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)