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 abd2257 commit 9d56fdfCopy full SHA for 9d56fdf
leetcode_generate.py
@@ -20,7 +20,8 @@
20
from collections import namedtuple, OrderedDict
21
22
HOME = Path.cwd()
23
-SOLUTION_FOLDER = Path.joinpath(HOME, 'solutions')
+SOLUTION_FOLDER_NAME = 'solutions'
24
+SOLUTION_FOLDER = Path.joinpath(HOME, SOLUTION_FOLDER_NAME)
25
CONFIG_FILE = Path.joinpath(HOME, 'config.cfg')
26
COOKIE_PATH = 'cookies.json'
27
BASE_URL = 'https://leetcode.com'
@@ -551,7 +552,8 @@ def write_readme(self):
551
552
language = ':lock:'
553
else:
554
if item.solutions:
- dirname = 'solutions/{id}-{title}'.format(
555
+ dirname = '{folder}/{id}-{title}'.format(
556
+ folder=SOLUTION_FOLDER_NAME,
557
id=str(item.question_id).zfill(3),
558
title=item.question__title_slug,
559
)
0 commit comments