Files
Rasadyar_RSI/app/__pycache__/serializers.cpython-310.pyc

41 lines
8.6 KiB
Plaintext
Raw Normal View History

2026-01-18 11:29:19 +03:30
o
<00><01>g<EFBFBD>&<00>@sbddlZddlmZmZddlmZddlmZmZm Z m
Z
m Z m Z ddl mZGdd<07>dej<0F>ZGdd <09>d ej<0F>ZGd
d <0B>d ej<0F>ZGd d <0A>d ej<0F>ZGdd<0F>dej<0F>ZGdd<11>dej<0F>ZGdd<13>dej<0F>ZGdd<15>dej<0F>ZGdd<17>dej<0F>ZGdd<19>dej<0F>ZGdd<1B>dej<0F>ZGdd<1D>dej<0F>ZGdd<1F>dej<0F>ZGd d!<21>d!ej<0F>ZGd"d#<23>d#ej<0F>ZdS)$<24>N)<02>Sum<75>Avg)<01> serializers)<06>Poultry<72>PoultryHatching<6E>TransportingChickenDetail<69>Hatching<6E>TransportingDetail<69> KillHouse)<01>build_calculationc@<00>,eZdZe<03>d<01>ZGdd<03>d<03>Zdd<05>ZdS)<07>PoultrySerializer<65> get_hatchingc@<00>eZdZeZgd<01>ZdS)zPoultrySerializer.Meta) <0C> FirstName<6D>LastName<6D>Mobile<6C>UnitName<6D>EpidemiologicCode<64>
SystemCode<EFBFBD> TrackingCode<64>UnitIsActiveDescription<6F> RegDateShamsi<73>LocationNameProvince<63>LocationNameCity<74>hatchingN<67><06>__name__<5F>
__module__<EFBFBD> __qualname__r<00>model<65>fields<64>r"r"<00>"D:\rasadyar\RSI\app\serializers.py<70>Meta <00> r$cCsDtjj|d<01>}t|dtd<03>}t|dtd<03>}t|dtd<03>}|||d<06>S)N)<01>poultry<72>BaseHatchingCount)<03>queryset<65> column_name<6D>aggregate_func<6E>EvacuationCount<6E>LeftOver)Z totalAmountZlossesr,)r<00>objects<74>filterr r)<06>self<6C>instancer<00> total_amountr+r,r"r"r#rs<06>zPoultrySerializer.get_hatchingN)rrrr<00>SerializerMethodFieldrr$rr"r"r"r#r
s
 r c@r )<07>PoultryHatchingSerializer<65>get_agec@<00>eZdZeZdZdS)zPoultryHatchingSerializer.Meta<74>__all__N<5F>rrrrr r!r"r"r"r#r$)<00>r$cCs"tj<00><01><00><02>|j<03><02>jd}|S<00>N<>)<05>datetime<6D>now<6F>date<74>Date<74>days<79>r/<00>obj<62>ager"r"r#r42sz!PoultryHatchingSerializer.get_ageN)rrrrr2rBr$r4r"r"r"r#r3%s
 r3c@<00>eZdZGdd<02>d<02>ZdS)<04>HatchingsSerializerc@r5)zHatchingsSerializer.Metar6N<>rrrrr r!r"r"r"r#r$8r8r$N<>rrrr$r"r"r"r#rD7<00>rDc@s6eZdZedd<02>Ze<05>d<03>ZGdd<05>d<05>Zdd<07>Z dS) <09>#TransportingChickenDetailSerializerT<72><01> read_only<6C>get_killing_agec@r5)z(TransportingChickenDetailSerializer.Metar6N)rrrrr r!r"r"r"r#r$Ar8r$cCs |j<00><01>|jj<03><01>jd}|Sr9)<05> reside_dater=rr>r?r@r"r"r#rKEsz3TransportingChickenDetailSerializer.get_killing_ageN)
rrrr3rrr2<00> killing_ager$rKr"r"r"r#rH=s


 rHc@rC)<04>HatchingSerializerc@r5)zHatchingSerializer.Metar6Nr7r"r"r"r#r$Kr8r$NrFr"r"r"r#rNJrGrNc@rC)<04>TransportingSerializerc@r5)zTransportingSerializer.Metar6N<>rrrr r r!r"r"r"r#r$Qr8r$NrFr"r"r"r#rOPrGrOc@rC)<04>HatchingCalculationSerializerc@r)z"HatchingCalculationSerializer.Meta)r+rrr&Nr7r"r"r"r#r$Wr%r$NrFr"r"r"r#rQVrGrQc@r )<07>PoultryInfoSerializer<65>get_infoc@r)zPoultryInfoSerializer.Meta)<10>keyrrrr<00>UnitIdrr<00> UnitIsActiver<00>inforr<00>UserIsActiveDescription<6F>Province<63>CityNrr"r"r"r#r$_r%r$c Cs<>tjj|dd<02>}|jtd<03>d<04>dpd}|jtd<07>d<04>dpd}|jtd<08>d<04>dp+d}tjj|dd <09>}|jtd
<EFBFBD>d<04>dp?d}t|<02>||||t|<06>||rT|<02><07>jd <0B>Sdd <0B>S) NF)r&<00>trash<73> ChickCountSum<75><01>totalr^rr,<00>
Evacuation)<02> hatching__inr[<00>
GoodAmount)Zcount_hatching<6E>total_hatching<6E>total_leftover<65>total_evacuation<6F> total_killingZ
cars_countZ
total_cars<EFBFBD>capacity) rr-r.<00> aggregaterr <00>len<65>last<73>CapacityFemale)r/rA<00> hatchingsrbrcrd<00>
transportsrer"r"r#rSfs" <06><06>zPoultryInfoSerializer.get_infoN<6F>rrrrr2rWr$rSr"r"r"r#rR\s
 rRc@rC)<04>"PoultryForHatchingDetailSerializerc@r)z'PoultryForHatchingDetailSerializer.Meta)rZrYrrrNrr"r"r"r#r${r%r$NrFr"r"r"r#rnzrGrnc@s6eZdZe<03>d<01>Zedd<03>ZGdd<05>d<05>Zdd<07>Z dS) <09>HatchingDetailSerializerrSTrIc@r)zHatchingDetailSerializer.Meta) r><00>Age<67>
KillingAverW<00>CertId<49> RequestCoder\<00>Periodrjr,r_r&NrEr"r"r"r#r$<00>r%r$cCsv|jr|jnd}tjj|dd<03>}|jtd<04>d<05>dpd}|jtd<07>d<08>d p'd}||jd
}||t|<03>t |d <0B>d <0C>S) NrF)rr[rp)<01>avg_agerurar]r^<00>d<00>)<04>average_slaughter_age<67> load_volumeZ number_loads<64>percent_hatching_license)
rjr r-r.rgrrr\rh<00>round)r/rArfrlrxryrzr"r"r#rS<00>s<06>z!HatchingDetailSerializer.get_infoN)
rrrrr2rWrnr&r$rSr"r"r"r#ro<00>s


 roc@<00>$eZdZedd<02>ZGdd<04>d<04>ZdS)<06>HatchingForUpdateSerializerTrIc@r5)z HatchingForUpdateSerializer.Metar6NrEr"r"r"r#r$<00>r8r$N)rrrrRr&r$r"r"r"r#r}<00><00>
r}c@rC)<04>#PoultryDetailSerializerForTransportc@r)z(PoultryDetailSerializerForTransport.Meta)rU<00>
PartIdCoderYrZrNrr"r"r"r#r$<00>r%r$NrFr"r"r"r#r<00>rGrc@r|)<06>$HatchingDetailSerializerForTransportTrIc@r)z)HatchingDetailSerializerForTransport.Meta)r<>r&rs<00> PedigreeNameNrEr"r"r"r#r$<00>r%r$N)rrrrr&r$r"r"r"r#r<><00>r~r<>c@r|)<06>TransportingDetailSerializerTrIc@r)z!TransportingDetailSerializer.Meta)rr<00>ResideDatePersian<61> DesUnitName<6D> DesPartIdCoderYrZra<00>TrackingStatusDescription<6F>SourceUnitNamerpr<>r><00>OutNrPr"r"r"r#r$<00>r%r$N)rrrr<>rr$r"r"r"r#r<><00>r~r<>c@s*eZdZe<03><04>ZGdd<02>d<02>Zdd<04>ZdS)<06>KillHouseSerializerc@r5)zKillHouseSerializer.Metar6N)rrrr
r r!r"r"r"r#r$<00>r8r$c Cs<>t|dg<00>}dd<03>|D<00>}dd<03>|D<00>}|rtdd<06>|D<00><01>nd}|r,tdd<06>|D<00><01>nd}|r9td d<06>|D<00><01>nd}t|<02>}t|<03>} t|<04>}
|rO| |d
nd} |rY|
|d
nd} ||| || |
|| d <0B>S) N<> filtered_barscSsg|]}|js|<01>qSr"<00>r<><00><02>.0<EFBFBD>barr"r"r#<00>
<listcomp><3E><00>z0KillHouseSerializer.get_info.<locals>.<listcomp>cSsg|]}|jr|<01>qSr"r<>r<>r"r"r#r<><00>r<>cs<00><00>|]}|jVqdS<00>N<>rar<>r"r"r#<00> <genexpr><3E><00><02>z/KillHouseSerializer.get_info.<locals>.<genexpr>rcsr<>r<>r<>r<>r"r"r#r<><00>r<>csr<>r<>r<>r<>r"r"r#r<><00>r<>rv)<08>bars<72>total_bars_quantity<74>
input_barsZtotal_input_bars_quantityZtotal_input_bars_percent<6E> output_barsZtotal_output_bars_quantityZtotal_output_bars_percent)<03>getattr<74>sumrh) r/rAr<>r<>r<>r<>Z total_inputZ total_outputZ
bars_countZ input_countZ output_countZ input_percentZoutput_percentr"r"r#rS<00>s( <06>zKillHouseSerializer.get_infoNrmr"r"r"r#r<><00>s r<>)r;<00>django.db.modelsrr<00>rest_frameworkr<00>
app.modelsrrrrr r
<00>helpersr <00>ModelSerializerr r3rDrHrNrOrQrRrnror}rr<>r<>r<>r"r"r"r#<00><module>s(    *