mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-30 13:10:56 +00:00
change my file type
This commit is contained in:
parent
3f8b2ad1e4
commit
55a4eb9916
6 changed files with 6 additions and 5 deletions
Binary file not shown.
|
|
@ -34,4 +34,5 @@ class Documents(BaseModel, table=True):
|
|||
target_table: str
|
||||
target_id: uuid.UUID
|
||||
|
||||
Documents.update_forward_refs()
|
||||
Documents.update_forward_refs()
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue