X-Git-Url: http://unremediatedgender.space/source?a=blobdiff_plain;f=notes%2Fmemoir_wordcounts.py;h=14aebc4cf2b5330c83a9e2e8a19a34fe64fb349d;hb=3abc0f4e2febaf97fe5afe042377067350011dd5;hp=bfe63c758e73ba115926cc284ce202de48d00022;hpb=2ac4b08210a9fddf103df3e1d7f37b8af797e491;p=Ultimately_Untrue_Thought.git diff --git a/notes/memoir_wordcounts.py b/notes/memoir_wordcounts.py index bfe63c7..14aebc4 100755 --- a/notes/memoir_wordcounts.py +++ b/notes/memoir_wordcounts.py @@ -21,7 +21,7 @@ MONTHS = { } def wordcount_at_this_sha(): - result = subprocess.run("wc -w content/drafts/blanchards-dangerous-idea-and-the-plight-of-the-lucid-crossdreamer.md content/drafts/a-hill-of-validity-in-defense-of-meaning.md content/drafts/if-clarity-seems-like-death-to-them.md content/drafts/agreeing-with-stalin-in-ways-that-exhibit-generally-rationalist-principles.md".split(), stdout=subprocess.PIPE) + result = subprocess.run("wc -w content/drafts/blanchards-dangerous-idea-and-the-plight-of-the-lucid-crossdreamer.md content/drafts/a-hill-of-validity-in-defense-of-meaning.md content/drafts/if-clarity-seems-like-death-to-them.md content/drafts/agreeing-with-stalin-in-ways-that-exhibit-generally-rationalist-principles.md content/drafts/standing-under-the-same-sky.md".split(), stdout=subprocess.PIPE) wc_lines = result.stdout.decode('utf8').split('\n') total_line = wc_lines[-2] # last line is empty return int(total_line.split()[0]) @@ -41,7 +41,7 @@ def look_back(): subprocess.run(["git", "checkout", "HEAD~1"]) wordcount = wordcount_at_this_sha() date = date_at_this_sha() - if date < datetime.date(2022, 4, 1): + if date < datetime.date(2022, 4, 20): keep_going = False wordcounts.append((date, wordcount)) # don't leave the head detached