Import Vector lab project
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import models
|
||||
from sqlalchemy import inspect
|
||||
|
||||
mapper = inspect(models.Case)
|
||||
columns = [c.key for c in mapper.columns]
|
||||
print(f"Всего полей в модели Case: {len(columns)}")
|
||||
print("\nПоля по категориям:")
|
||||
print("\nРебёнок (Шаг 1):")
|
||||
for c in columns:
|
||||
if c in ["child_name", "age_years", "gender", "height_build", "clothes_upper", "clothes_lower", "shoes", "clothes_description", "special_marks", "phone_status"]:
|
||||
print(f" - {c}")
|
||||
print("\nЗдоровье (Шаг 2):")
|
||||
for c in columns:
|
||||
if c in ["has_diagnosis", "diagnosis_type", "fitness_level", "has_transport", "cant_swim"]:
|
||||
print(f" - {c}")
|
||||
print("\nПсихотип (Шаг 2б):")
|
||||
for c in columns:
|
||||
if c in ["psychotype", "psychotype_answers"]:
|
||||
print(f" - {c}")
|
||||
print("\nОбстоятельства (Шаг 3):")
|
||||
for c in columns:
|
||||
if c in ["loss_reason", "loss_time", "elapsed_hours", "last_seen_direction", "last_seen_reliability", "last_seen_description", "behavior_description", "familiar_places", "lost_before"]:
|
||||
print(f" - {c}")
|
||||
print("\nСреда (Шаг 4):")
|
||||
for c in columns:
|
||||
if c in ["season", "temperature_c", "precipitation", "visibility", "wind", "terrain"]:
|
||||
print(f" - {c}")
|
||||
print("\nGPS (Шаг 4):")
|
||||
for c in columns:
|
||||
if c in ["tnp_lat", "tnp_lon", "tnp_address"]:
|
||||
print(f" - {c}")
|
||||
print("\nРесурсы (Шаг 5):")
|
||||
for c in columns:
|
||||
if c in ["teams_count", "team_size", "has_dog", "extra_resources"]:
|
||||
print(f" - {c}")
|
||||
print("\nИсход:")
|
||||
for c in columns:
|
||||
if c in ["found_alive", "found_distance_km", "found_direction", "found_location_type", "found_lat", "found_lon", "search_duration_hours", "who_found"]:
|
||||
print(f" - {c}")
|
||||
Reference in New Issue
Block a user