19 lines
720 B
Python
19 lines
720 B
Python
import os
|
|
|
|
for root, dirs, files in os.walk('.'):
|
|
if any(x in root for x in ['node_modules', '.git', 'venv']):
|
|
continue
|
|
for f in files:
|
|
if f.endswith(('.py', '.js', '.jsx', '.html', '.md')):
|
|
p = os.path.join(root, f)
|
|
with open(p, 'r', encoding='utf-8', errors='ignore') as fp:
|
|
content = fp.read()
|
|
matches = []
|
|
for line in content.splitlines():
|
|
if 'status_kerja' in line or 'status_pekerjaan' in line:
|
|
matches.append(line.strip())
|
|
if matches:
|
|
print(f"=== {p} ===")
|
|
for m in matches[:5]:
|
|
print(" ", m)
|