Parcourir la source

typo fix + unrepeat generator

Getty Ritter il y a 2 ans
Parent
commit
018ec6c306
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  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.