File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change
1
+ 2019-10-11 Wang Kai <
[email protected] >
2
+
3
+ * leetcode.el (leetcode-try): When encounter syntax error, .expected_code_answer is null. Handle this situation depend on status_code.
4
+
1
5
2019-10-10 Wang Kai <
[email protected] >
2
6
3
7
* leetcode.el: submissions detail API modification
Original file line number Diff line number Diff line change 6
6
; ; Keywords: extensions, tools
7
7
; ; URL: https://github.com/kaiwk/leetcode.el
8
8
; ; Package-Requires: ((emacs "26") (dash "2.16.0") (graphql "0.1.1") (spinner "1.7.3") (aio "1.0"))
9
- ; ; Version: 0.1.8
9
+ ; ; Version: 0.1.9
10
10
11
11
; ; This program is free software; you can redistribute it and/or modify
12
12
; ; it under the terms of the GNU General Public License as published by
@@ -584,11 +584,14 @@ see: https://github.com/skeeto/emacs-aio/issues/3."
584
584
(let-alist actual_res
585
585
(with-current-buffer res-buf
586
586
(goto-char (point-max ))
587
- (insert (concat " Expected:\n " (aref .expected_code_answer 0 ) " \n\n " ))
588
- (insert " Output:\n " )
589
587
(cond
590
588
((eq .status_code 10 )
591
- (insert (aref .code_answer 0 )))
589
+ (insert " Output:\n " )
590
+ (insert (aref .code_answer 0 ))
591
+ (insert " \n\n " )
592
+ (insert " Expected:\n " )
593
+ (insert (aref .expected_code_answer 0 ))
594
+ (insert " \n\n " ))
592
595
((eq .status_code 14 )
593
596
(insert .status_msg))
594
597
((eq .status_code 15 )
You can’t perform that action at this time.
0 commit comments