We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19dfb34 commit 7a7dff6Copy full SHA for 7a7dff6
src/vsc-leetcode-cli/new_lib/commands/list.ts
@@ -45,10 +45,17 @@ class ListCommand {
45
session.argv = argv;
46
corePlugin.filterProblems(argv, function (e, problems) {
47
if (e) return log.info(e);
48
-
49
50
- log.info(JSON.stringify(problems));
51
+ let new_objcet: Array<any> = [];
+ problems.forEach(element => {
+ let temp_ele: any = {}
+ for (const key in element) {
52
+ if (key != "link") {
53
+ temp_ele[key] = element[key]
54
+ }
55
56
+ new_objcet.push(temp_ele);
57
+ });
58
+ log.info(JSON.stringify(new_objcet));
59
});
60
};
61
}
0 commit comments