change my file type

This commit is contained in:
Jun-te Kim 2025-06-04 11:00:36 +00:00
parent 3f8b2ad1e4
commit 55a4eb9916
6 changed files with 6 additions and 5 deletions

View file

@ -34,4 +34,5 @@ class Documents(BaseModel, table=True):
target_table: str
target_id: uuid.UUID
Documents.update_forward_refs()
Documents.update_forward_refs()

View file

@ -40,7 +40,7 @@ class pdfReaderToText():
self.type = ReportType.ENERGY_PERFORMANCE_REPORT
elif "Chartered Surveyor Report: Recommending Extraction of Defective Cavity Wall Insulation " in self.text_list:
self.type = ReportType.CHARTED_SURVEYOR_REPORT
elif "Osmosis ACD PAS 2035 Condition Report".lower() in self.text_list[0].lower():
elif "Osmosis ACD NEW PAS 2035 Condition Report".lower() in self.text_list[0].lower():
self.type = ReportType.OSMOSIS_CONDITION_PAS_2035_REPORT
else:
pass

View file

@ -7,4 +7,4 @@ class ReportType(Enum):
ENERGY_PERFORMANCE_REPORT = "energy_performance_report"
U_VALUE_CALCULATOR_REPORT = "u_value_calculator_report"
OVERWRITING_U_VALUE_DECLARATION_FORM = "overwriting_u_value_declaration_form"
OSMOSIS_CONDITION_PAS_2035_REPORT = "osmosis_condition_pas_2035_report"
OSMOSIS_CONDITION_PAS_2035_REPORT = "osmosis_condition_pas_2035_report"

View file

@ -228,7 +228,7 @@ class ConditionReport(BaseModel):
property_reference_code: str
general_information: GeneralInformation
access_and_elevation: AccessAndElevations
rooms: Rooms
rooms: List[Rooms]
heating_system: HeatingSystem
occupancy_assessment: OccupancyAssessment
ventilation_checklist: VentilationChecklist

View file

@ -6,4 +6,4 @@ if (!process.env.DATABASE_URL) {
}
const sqlClient = postgres(process.env.DATABASE_URL);
export const db = drizzle(sqlClient);
export const db = drizzle(sqlClient);