Skip to content

Commit cf16f3b

Browse files
committed
verify fetching problem list
1 parent 1db5835 commit cf16f3b

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

workspaces/fetch-leetcode-problem-list/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { whileReturnsTrueAsync } from "@code-chronicles/util/whileReturnsTrueAsy
1111

1212
const FILENAME = "problems.jsonl";
1313

14-
const LIMIT = 500;
14+
const LIMIT = 50;
1515

1616
async function main(): Promise<void> {
1717
// TODO: warn early if the file already exists

workspaces/leetcode-api/schema-patched.graphql

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workspaces/leetcode-api/src/api/question-list/fetchGraphQL.generated.ts

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workspaces/leetcode-api/src/scripts/scrape-graphql-schema/patchGraphQLSchema.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { replaceInMap } from "@code-chronicles/util/replaceInMap";
55
import type { LeetCodeGraphQLType } from "../../fetchGraphQLTypeInformation.ts";
66
import { markFieldsNonNull } from "./markFieldsNonNull.ts";
77

8-
const FIELDS_TO_MARK_NON_NULL: ReadonlyDeep<Record<string, string[]>> = {
8+
// TODO: support setting list values to be non-null
9+
10+
const FIELDS_TO_MARK_NON_NULL = {
911
Query: [
1012
"activeDailyCodingChallengeQuestion",
1113
"questionList",
@@ -50,13 +52,12 @@ const FIELDS_TO_MARK_NON_NULL: ReadonlyDeep<Record<string, string[]>> = {
5052
"similarQuestions",
5153
"solutionNum",
5254
"stats",
53-
"status",
5455
"submitUrl",
5556
"topicTags",
5657
"urlManager",
5758
],
5859
SubmissionDumpNode: ["id", "timestamp", "title", "titleSlug"],
59-
};
60+
} as const;
6061

6162
export function patchGraphQLSchema(
6263
scrapedTypeInfos: ReadonlyMap<string, ReadonlyDeep<LeetCodeGraphQLType>>,

0 commit comments

Comments
 (0)