Skip to content

Commit 317c5e3

Browse files
Support exporting pythondata submissions (#9)
Support exporting pythondata submissions --------- Co-authored-by: Davide Cazzin <28535750+NeverMendel@users.noreply.github.com>
1 parent 786d0f2 commit 317c5e3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

leetcode_export/__main__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ def parse_args():
7373
type=str,
7474
help="save submissions for specified programming languages.\n"
7575
"syntax: --language=<lang1>,<lang2>,...\n"
76-
"languages: python, python3, c, cpp, csharp, java,\n"
77-
" kotlin, mysql, mssql, oraclesql, javascript,\n"
78-
" html, php, golang, scala, pythonml,\n"
79-
" rust, ruby, bash, swift\n"
76+
"languages: python, python3, pythondata, c, cpp,\n"
77+
" csharp, java, kotlin, mysql, mssql,\n"
78+
" oraclesql, javascript, html, php, golang,\n"
79+
" scala, pythonml, rust, ruby, bash, swift\n"
8080
"example: --language=python,cpp,java",
8181
)
8282
parser.add_argument(

leetcode_export/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
VALID_PROGRAMMING_LANGUAGES = [
55
"python",
66
"python3",
7+
"pythondata",
78
"c",
89
"cpp",
910
"csharp",
@@ -27,6 +28,7 @@
2728
FILE_EXTENSIONS = {
2829
"python": "py",
2930
"python3": "py",
31+
"pythondata": "pd.py",
3032
"c": "c",
3133
"cpp": "cpp",
3234
"csharp": "cs",

0 commit comments

Comments
 (0)