From 139cae7c8772db2f764ff257f1b87123fe4fccb5 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 10 Jan 2024 18:35:12 +0100 Subject: [PATCH] excel or ods format for upload datas --- examples/membership-card.ods | Bin 0 -> 11886 bytes examples/membership-card.xls | Bin 0 -> 6144 bytes idhub/admin/forms.py | 3 ++- requirements.txt | 2 ++ 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 examples/membership-card.ods create mode 100644 examples/membership-card.xls diff --git a/examples/membership-card.ods b/examples/membership-card.ods new file mode 100644 index 0000000000000000000000000000000000000000..adf3cfc39e1983a28dd3b589a12319017e1092c6 GIT binary patch literal 11886 zcmd6NWmH^Qvo<8S28ZAl+=6?M;4Z-YC*I8ZNYu8h?<>>IN1KX)ze@20=byDxPt!O z?pHBd*gBZF0RAn;UwLzMaCCKi=-$8djpP?mIyyT5odKZ#A9o+6MKN|zj!47 zg-0tp6CeP@CT`_oXW|I@7vo=rYhq>wum#-Dr^D|9goK3j+j6@1^oO9`Yj!5~Ru%w| z3#+ra#X#JEeIWajw+BK&fWfI3Z1C{T^nH!inV-3Xwc**0Q?ch;qvBqv<`r*ej;)kQ zaV|vFr0toIe2u93*sj54#z5OAV_Cb!Bmib@%!dffOw}=wr;;972j*uoHo4m~@*5=v zvGAhV4prySd!(KSDK}HKkMlXnpmoOU1r^;DS$rrPschm+NTP(E@e6ar*Op(Cw1a(RuLr0t8rT;NsA zM$Iv~rgXWAJR(vJ)N%wK76vBpF$~Oq?txzo-*0y#z{P~s!_M}dTE9{U`;+Dqyx1*n zCqrMIA||Ir4P=_|&QiHOJN5=QfS}@~_c3c0S%W7KCp~A!+ z)&FQ3WLO`4`>1rwpa2uG{k7vjA2t03dHb3ni)JEjFsM=dU@!xzTT>HW6WdaKkq-?= z-}nP~RuuK)zG}H;CzHn0moD}}w2Y!}Xrr)vA8~8PFeTNPxpD(@$BVeCxR=oa-%6P~ z;YxZe8s@2F)<26#?5DK{Ki0Gn#!h2s@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mYfHLKqku8`P3d~{0TfZ zu3p2z z8%)NX_gPlGkKNp9>a<8hmzuSCmKP!xZXZ2tjxY3HQ*zu>mYCrlHpj4!aAE$L^!YG9 zKjn7{=-;h=w)oGc`sZ(rd-b15o`3cI)9UXi;lDunN&5U}lm}YmPx*YW{ymmIlR*C& z=b=#WQ!eh+zvKKQh5j?jU!!5YpMk%l{Fx;B&o~df%b#NLE1bWOM*kV?npQ3z^^hfTvC!PMj zh<~^IGn4OuVfj;{?rT2x+~?o;mVdYUGiT(1<@Zxw+}EGXescc)ZusXDiH9oFPeHrK z`AIPOyWO8lTYv4~#{F&l=hKVdE&r+X_0!|T{X+PsLfG#pzYo)&v&TbT{wenql340QX7fgyG@W{{t(E?xz3% literal 0 HcmV?d00001 diff --git a/examples/membership-card.xls b/examples/membership-card.xls new file mode 100644 index 0000000000000000000000000000000000000000..857fb283e9381444eb17fa2b393c6ddf98697ba6 GIT binary patch literal 6144 zcmeHLU2IfU5T3i;UG73@x8+9#scVttr!Ar7K@33_3L-{e12v){(cA6aa%F#-?N-5P zTnfBNqT#_85<|iZ(I9G~51I&XK4>%=666VdBlxf=#*hH(_szYVUFt4uO`~FZ+Bs)t z&YUxI=FFLM?tcGW+ocm9FSsld%35iX+og~MtM~@+P?-*k_<)mlyHqNb*+8euedK{# zo~_(NKQ=J{;GWL_m;mx;dhLC*tZ7pl^uSKZ;x8`|*(@2fIXQscZoJG##8j(lWMp-| zXhi;AGSm7i9=MmU*kA2`=5OZlCP1z8&wS7GKMT+dmZG`l^zJ0*u`K#zL@<|XAz|9fEjWe+!pyrxnF9%PNNS( zF^Q}}!xzbQBc`?=)w)yb7Sx7(u467Lrx$VgHRMZgz2hB%fUyDj&k;*fGNBi8Q`Oty zZA5*6zn3D=QZ8pB+rkl@K@B~hyKDp=EIpPNQrH@(4=i!A*gM8!LRL{!VGQa76PT0HFl36 zvv%;2h76px(}Q+ybgwhgldy6_Z{v`5;_sYc0z?Lm8gf-$WU4Oi)O7`mOvyaU3TN!86$~)N%%(aq9C*@dqduW%F zN!XY=ZjacQZ_96K`*mD7W21JiH)ij*(jzH*B}U_laxz2CtIp7vmBRaVo4N)_+{z5w z7P?pU_Tay7Rp06oF0>ZeidlJ~CCqsMAYS1G#^U3x=Vr(79oexN&KrVLnNQl(kzu&& z=BaBxY#WTPe@XcTeLL$svV{8#Paj0jIsXbB(WUjc%FdO=jL2wzv~$3L+alZT*CIQ! zX)DvcJ)28gsm^F`Uv$GfS;0&3?qc!F!%oJEMB|54!C|eVFlM!uE9;k5;md#@>bWr9 zbD_9?c@=&FF%-fQ4gDLJZll{Mk1w}|JcqeWc~gCe)dl$=5T!Y;5US8VNSlYtm&y8pAqs7NaRh+>M*;X;ZBf*hn z-YtFBxDOc-mol)e6mTh@ZgQDw0>wv?+vf+xZFQ*tD4t1|3WDM%6e-TusvlD>MGXu# zm!bwfuw0577<4X04SaOD6g4nfU5Xm`5c@^qzL5T&Da` z(e(_7s^XKGI*!ZX8lLpE%V#tnH)^FU;(UgNlN%O3-!Rg^Fg1Dw=YbCsQd~uY#lY*Y z3Gy5oHkp=i-)k*T@y)o+N#wGl*x~_I!ymkBO4rg)f8ut$0ibu;Ps6$WF#uimEPz|S z8^FyT0&ts005tN-E%)tAybllq$lBey2a1zMiD~Ut#CMN(wO{SOsF6|CrD#3-sl#{v z+w;d)E({-g5B7K8IK2tHzy#hN@OY_kasoq)V`*zWKDwvNf5Zb*`Tei^Kj945S|-zI z!OIcP(mPST(LTIZeXh3gD>_&#wl$i6 zD5-lwP99%FS#au?WuAUs9gVJk31mO?rVPj?Xh^6Hw*CS&IeXUpjrH?7%zOH$qM5A! LtABs_xAp%C$V*a0 literal 0 HcmV?d00001 diff --git a/idhub/admin/forms.py b/idhub/admin/forms.py index 2649f4b..e67789e 100644 --- a/idhub/admin/forms.py +++ b/idhub/admin/forms.py @@ -79,7 +79,8 @@ class ImportForm(forms.Form): if File_datas.objects.filter(file_name=self.file_name, success=True).exists(): raise ValidationError("This file already exists!") - df = pd.read_csv (data, delimiter="\t", quotechar='"', quoting=csv.QUOTE_ALL) + # df = pd.read_csv (data, delimiter="\t", quotechar='"', quoting=csv.QUOTE_ALL) + df = pd.read_excel(data) data_pd = df.fillna('').to_dict() if not data_pd: diff --git a/requirements.txt b/requirements.txt index 9b19238..81df537 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,6 +6,8 @@ black==23.9.1 python-decouple==3.8 jsonschema==4.19.1 pandas==2.1.1 +xlrd==2.0.1 +odfpy==1.4.1 requests==2.31.0 didkit==0.3.2 jinja2==3.1.2