Files
Anton_wireframe/app/routers/__pycache__/investors.cpython-312.pyc
T

58 lines
9.5 KiB
Plaintext
Raw Normal View History

Ë
2025-09-25 17:00:38 +01:00
ºWÕh®ãóDddlmZmZddlmZddlmZmZddlm Z m
Z
m Z m Z ddl
mZmZddlmZddlmZmZe dg¬ «ZGd
d e«ZGd d
e«Zej1dee¬«e
e«fdefd«Zej1dee¬«e dd¬«e dd¬«e dd¬«e dd¬«e dd¬«e dd¬«e dd¬«e
e«fdeedeedeedeed eed!eed"eedefd#„«Zej1d$e¬«e
e«fd%edefd&„«Zej=de¬«e
2025-09-25 17:00:38 +01:00
e«fd'edefd(„«ZejAd$e¬«e
e«fd%ed'edefd)„«Z!ejEd$«e
e«fd%edefd*„«Z#y)+é)ÚListÚOptional)Úget_db)Ú
InvestorTableÚ SectorTable)Ú APIRouterÚDependsÚ
HTTPExceptionÚQuery)ÚInvestmentStageÚ InvestorData)Ú BaseModel)ÚSessionÚ selectinloadzInvestor Routes)ÚtagscóleZdZUeed<dZeeed<eed<eed<eed<eed<eed<d Z eed
<y) ÚInvestorCreateÚnameNÚ descriptionÚaumÚcheck_size_lowerÚcheck_size_upperÚgeographic_focusÚ stage_focusrÚnumber_of_investments)
Ú__name__Ú
__module__Ú __qualname__ÚstrÚ__annotations__rrÚintr r©óúN/home/oluwasanmi/Documents/Work/MKD/anton_wirefram_v2/app/routers/investors.pyrrs=Ø
ƒIØ!%€K˜#‘Ó ƒHØÓØÓØÓØ Ó Ø!"И"r#rcó®eZdZUdZeeed<dZeeed<dZee ed<dZ
2025-09-25 17:00:38 +01:00
ee ed<dZ ee ed<dZ eeed<dZ
eeed<dZee ed <y)
ÚInvestorUpdateNrrrrrrrr)rrrrrrr rrr!rrrrr rr"r#r$r&r&swØ€Dˆ(3‰-ÓØ!%€K˜#‘Ó€Cˆ#‰ÓØ&*Ðh˜s*Ø&*Ðh˜s*Ø&*Ðh˜s*Ø-1€K˜1Ø+/И8 C™=Ô/r#r&z
/investors)Úresponse_modelÚdbcó†|jt«jttj«ttj
«ttj ««j«}g}|D]@}t||j|j
|j ¬«}|j|«ŒB|S)z)Get all investors with their related data©ÚinvestorÚportfolio_companiesÚ team_membersÚsectors)
ÚqueryrÚoptionsrr,r-r.Úallr
Úappend)r(Ú investorsÚinvestor_data_listr+Ú
investor_datas r$Úread_investorsr6%ð Óß Ü œ× œ× œ× 
2025-09-25 17:00:38 +01:00
÷
ððÐØòÜØ (× <Ñ <Ø!××
ˆ
ð ×!  Ðr#z/investors/filterNzFilter by investment stage)rzMinimum check sizezMaximum check sizez Geographic focus (partial match)zSector name (partial match)z Minimum AUMz Maximum AUMÚstageÚmin_check_sizeÚmax_check_sizeÚ geographyÚsectorÚmin_aumÚmax_aumcóü|jt«jttj«ttj
«ttj ««}|r"|jtj|k(«}|"|jtj|k\«}|"|jtj|k«}|r2|jtjjd|d««}|"|jtj|k\«}|"|jtj|k«}|rO|jtj «jtj jd|d««}|j#«} g}
2025-09-25 17:00:38 +01:00
| D]@} t%| | j| j
| j ¬«} |
j'| «ŒB|
S)z*Filter investors based on various criteriaú%r*)r/rr0rr,r-r.ÚfilterrrrrÚilikerÚjoinrrr1r
2025-09-25 17:00:38 +01:00
r2)
r7r8r9r:r;r<r=r(r/r3r4r+r5s
r$Úfilter_investorsrC@ð$
H‰H”]Ó ”]×”]×”]×
€Eñ
2025-09-25 17:00:38 +01:00
Ø œ]×6¸%ÑàÐ œ]×;¸~ÑàÐ œ]×;¸~ÑáØ œ]×AÀAÀiÀ[ÐPQÐBRÓàÐØ œ]×.°'ÑàÐØ œ]×.°'Ñ:ˆñØ
œ=× × Ñ × " Q v h¨a  
ˆð— ‘ “ €IðÐØòÜØ (× <Ñ <Ø!××
ˆ
2025-09-25 17:00:38 +01:00
ð ×!  Ðr#z/investors/{investor_id}Ú investor_idcó¬|jt«jttj«ttj
«ttj ««jtj|k(«j«}|s
tdd¬«t||j|j
|j ¬«S)zGet a specific investor by IDé”úInvestor not found©Ú status_codeÚdetailr*) r/rr0rr,r-r.r@ÚidÚfirstr
r
)rDr(r+s r$Ú
read_investorrMð Óß Ü œ× œ× œ×