浏览代码

typo fix + unrepeat generator

Getty Ritter 2 年之前
父节点
当前提交
018ec6c306
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      main.py
  2. 1 1
      works/nonsense/the-convent-of-st-selvage/text

+ 2 - 2
main.py

@@ -68,13 +68,13 @@ class Path:
 
     @classmethod
     def list(cls, *paths):
-        stuff = []
+        stuff = set()
         tgt = f'{os.path.join(*paths)}/'
         for path in sys.argv[2:]:
             if tgt in path:
                 chunks = path.split('/')
                 idx = chunks.index(paths[-1])
-                stuff.append(chunks[idx +1])
+                stuff.add(chunks[idx +1])
         return stuff
 
 class Template:

+ 1 - 1
works/nonsense/the-convent-of-st-selvage/text

@@ -6,7 +6,7 @@ One day, Mother Superior Elen di Pecora took a walk on the four sidewalks in tow
 
 "We can knit clothes and blankets to warm them!" suggested Sister Konn.
 
-"Ah, but we live in California, where the weathers stays mild in winter and sweltering in summer. What need have they for blankets and coats here?" rejoined Sister Cvari.
+"Ah, but we live in California, where the weathers stay mild in winter and sweltering in summer. What need have they for thick blankets and coats here?" rejoined Sister Cvari.
 
 "We can construct houses for them!" suggested Sister Myeonyang.