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

58 lines
9.3 KiB
Plaintext
Raw Normal View History

Ë
sý·hHãó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
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ófeZdZUeed<dZeed<eed<eed<eed<eed<eed<d Zeed
<y) ÚInvestorCreateÚnameNÚ descriptionÚaumÚcheck_size_lowerÚcheck_size_upperÚgeographic_focusÚ stage_focusrÚnumber_of_investments) Ú__name__Ú
__module__Ú __qualname__ÚstrÚ__annotations__rÚintr r©óúH/home/oluwasanmi/Documents/Work/MKD/anton_wireframe/app/api/investors.pyrrs9Ø
ƒIØ€KÓØ ƒHØÓØÓØÓØ Ó Ø!"И"r#rcó~eZdZUdZeed<dZeed<dZeed<dZ eed<dZ
eed<dZ eed<dZ e
ed<dZeed <y)
ÚInvestorUpdateNrrrrrrrr)rrrrrr rrr!rrrrr rr"r#r$r&r&sUØ€Dˆ#ÓØ€KÓØ€CˆƒOØ Ð Ø Ð Ø Ð Ø#'€KÓ'Ø!%И%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$ð Óß Ü œ× œ× œ× 
÷
ððÐØòÜØ (× <Ñ <Ø!××
ˆ
ð ×!  Ð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}
| D]@} t%| | j| j
| j ¬«} |
j'| «ŒB|
S)z*Filter investors based on various criteriaú%r*)r/rr0rr,r-r.ÚfilterrrrrÚilikerÚjoinrrr1r
r2)
r7r8r9r:r;r<r=r(r/r3r4r+r5s
r$Úfilter_investorsrC?ð$
H‰H”]Ó ”]×”]×”]×
€Eñ
Ø œ]×6¸%ÑàÐ œ]×;¸~ÑàÐ œ]×;¸~ÑáØ œ]×AÀAÀiÀ[ÐPQÐBRÓàÐØ œ]×.°'ÑàÐØ œ]×.°'Ñ:ˆñØ
œ=× × Ñ × " Q v h¨a  
ˆð— ‘ “ €IðÐØòÜØ (× <Ñ <Ø!××
ˆ
ð ×!  Ð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ð Óß Ü œ× œ× œ×