[2ff88f42] multiplikation vorbereitet
multiplikation vorbereitet
This commit is contained in:
22
company-explorer/backend/scripts/check_mappings.py
Normal file
22
company-explorer/backend/scripts/check_mappings.py
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Setup Environment
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), "../../"))
|
||||
|
||||
from backend.database import SessionLocal, JobRoleMapping
|
||||
|
||||
def check_mappings():
|
||||
db = SessionLocal()
|
||||
count = db.query(JobRoleMapping).count()
|
||||
print(f"Total JobRoleMappings: {count}")
|
||||
|
||||
examples = db.query(JobRoleMapping).limit(5).all()
|
||||
for ex in examples:
|
||||
print(f" - {ex.pattern} -> {ex.role}")
|
||||
|
||||
db.close()
|
||||
|
||||
if __name__ == "__main__":
|
||||
check_mappings()
|
||||
Reference in New Issue
Block a user