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

54 lines
11 KiB
Plaintext
Raw Normal View History

2025-09-25 17:00:38 +01:00
Ë
ˆyíhQ!ãóˆddlmZddlmZddlmZmZddlmZm Z m
2025-09-25 17:00:38 +01:00
Z
m Z ddl m
Z
2025-09-25 17:00:38 +01:00
ddlmZmZddlmZmZedg¬ «ZGd
d e
2025-09-25 17:00:38 +01:00
«ZGd d
e
«Zej/dee¬«e ddd¬«e dddd¬«e e«fdededefd«Zej/dee¬«e dd¬«e dd¬«e dd ¬«e dd!¬«e dd"¬«e dd#¬«e ddd¬«e dddd¬«e e«f d$eed%eed&eed'eed(eed)eedededefd*„«Zej/d+e¬«e e«fd,edefd-„«Zej=de¬«e e«fd.edefd/„«ZejAd+e¬«e e«fd,ed.edefd0„«Z!ejEd+«e e«fd,edefd1„«Z#y)2é)ÚOptional)Úget_db)Ú CompanyTableÚ
InvestorTable)Ú APIRouterÚDependsÚ
HTTPExceptionÚQuery)Ú BaseModel)Ú CompanyDataÚPaginatedResponse)ÚSessionÚ selectinloadzCompany Routes)ÚtagscóheZdZUeed<eed<eed<dZeeed<dZeeed<dZ eeed<y)Ú
CompanyCreateÚnameÚindustryÚlocationNÚ descriptionÚ founded_yearÚwebsite)
Ú__name__Ú
__module__Ú __qualname__ÚstrÚ__annotations__rrrÚintr©óúL/home/oluwasanmi/Documents/Work/MKD/anton_wireframe/app/routers/companies.pyrrs;Ø
ƒI؃M؃MØ!%€K˜#Ó%Ø"&€L(˜3!€GˆXc‰]Ô!r rcó†eZdZUdZeeed<dZeeed<dZeeed<dZ eeed<dZ
2025-09-25 17:00:38 +01:00
ee ed<dZ eeed<y)Ú
CompanyUpdateNrrrrrr)
rrrrrrrrrrrrrrr r!r#r#sVØ€Dˆ(3‰-ÓØ"€Hˆhs‰mÓ"€Hˆhs‰mÓ"Ø!%€K˜#Ó%Ø"&€L(˜3!€GˆXc‰]Ô!r r#z
/companies)Úresponse_modelézPage number (starts at 1))Úgeré
édzItems per page (max 100))r&ÚlerÚpageÚ page_sizeÚdbcór|dz
|z}|jt«jtjj d«tj
j d««j
«}|jt«jtjj d«tj
j d««jttj«ttj«ttj««j|«j|«j«}g}|D]@}t||j|j|j¬«}|j!|«ŒB||zdz
|z} t#||||| ¬«S)z?Get all companies with their investor relationships (paginated)r%ÚcompanyÚ investorsÚmembersÚsectors©ÚitemsÚtotalr*r+Ú total_pages)ÚqueryrÚfilterrÚisnotrÚcountÚoptionsrr0r1r2ÚoffsetÚlimitÚallr Úappendr
)
r*r+r,r<Ú total_countÚ companiesÚcompany_data_listr/Ú company_datar6s
2025-09-25 17:00:38 +01:00
r!Úread_companiesrD shðQ‰h˜
#€Fð Óß  ×!×Ó-¬|×/GÑ/G×/MÑ/MÈdÓ/SÓ Tß ðð Óß  ×!×Ó-¬|×/GÑ/G×/MÑ/MÈdÓ/SÓ Tß Ü œ× œ× œ× 
÷
2025-09-25 17:00:38 +01:00
ß ˆyÓ ß ððÐØòܨחO—O
ˆ ð × Ñ  Õ Ñ*¨QÑ.°9Ñ<€Kä ØØØ
ØØô  ðr z/companies/filterNz"Filter by industry (partial match))rz"Filter by location (partial match)zFounded after yearzFounded before yearz%Filter companies with/without websitez'Filter by investor name (partial match)rrÚ
2025-09-25 17:00:38 +01:00
founded_afterÚfounded_beforeÚ has_websiteÚ
investor_namec óì|jt«jttj«ttj
«ttj ««} |r2| jtjjd|d««} |r2| jtjjd|d««} |"| jtj|k\«} |"| jtj|k«} |_|r/| jtjjd««} n.| jtjjd««} |rO| jtj«jt j"jd|d««} | j%«}
|dz
|z} | j'| «j)|«j+«} g}
2025-09-25 17:00:38 +01:00
| D]@}t-||j|j
|j ¬«}|
j/|«ŒB|
|zdz
2025-09-25 17:00:38 +01:00
|z}t1|
|
|||¬«S)z6Filter companies based on various criteria (paginated)ú%Nr%r.r3)r7rr;rr0r1r2r8rÚilikerrrr9Úis_Újoinrrr:r<r=r>r r?r
)rrrErFrGrHr*r+r,r7r@r<rArBr/rCr6s r!Úfilter_companiesrNVsð.
H‰H”\Ó "× ”\×”\×”\×
€EñØ œ\×8¸1¸X¸JÀa¸ÓáØ œ\×8¸1¸X¸JÀa¸ÓàÐ Ø œ\×6¸-ÑàÐ œ\×6¸.ÑàÐÙ Ø—L‘L¤×!5Ñ!5×!;Ñ!;¸DÓ!AÓB‰Eà—L×!5Ñ!5×!9Ñ!9¸$Ó!?Ó@ˆØ
œ<× × Ñ × $ q¨¨°qÐ%9Ó