diff options
author | Anthony Wang | 2024-12-03 22:09:15 -0500 |
---|---|---|
committer | Anthony Wang | 2024-12-03 22:09:15 -0500 |
commit | f0d251eac98fabfd0bb5ef0fa5a88b59f261da4b (patch) | |
tree | d76b7fbd8cfbd8e3ab34c2604ce7c4bb69367141 /static | |
parent | 90e5c08b6244dece6abfa1ad1b88e9f4e0e1b500 (diff) |
Now hosted on XVM and Caddy! Only include necessary pi digits in about page poem checker script
Diffstat (limited to 'static')
-rw-r--r-- | static/src/check-about.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/src/check-about.py b/static/src/check-about.py index e7bf62d..d88078d 100644 --- a/static/src/check-about.py +++ b/static/src/check-about.py @@ -1,6 +1,6 @@ import re -PI = '31415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679' +PI = '31415926535897932384626433832795028841' i = 0 with open('content/about/_index.md') as f: @@ -9,5 +9,5 @@ with open('content/about/_index.md') as f: continue cnt = str(len(re.sub(r']\([^\)]*\)', '', l).split())) if cnt != PI[i:i+len(cnt)]: - print(l, cnt, PI[i]) + print(l, cnt, PI[i:i+2]) i += len(cnt) |