fix count cars script

pull/22246/head
Adeeb Shihadeh 4 years ago
parent b7e74f3b24
commit 3ab2d29fb8
  1. 2
      scripts/count_cars.py

@ -2,7 +2,7 @@
import os import os
from common.basedir import BASEDIR from common.basedir import BASEDIR
with open(os.path.join(BASEDIR, "README.md")) as f: with open(os.path.join(BASEDIR, "docs/CARS.md")) as f:
lines = f.readlines() lines = f.readlines()
cars = [l for l in lines if l.strip().startswith("|") and l.strip().endswith("|") and cars = [l for l in lines if l.strip().startswith("|") and l.strip().endswith("|") and
"Make" not in l and any(c.isalpha() for c in l)] "Make" not in l and any(c.isalpha() for c in l)]

Loading…
Cancel
Save