From 7f5f921fc055cb5ab3a9880a47390b01ea6822a7 Mon Sep 17 00:00:00 2001 From: BezierQuadratic Date: Sat, 2 Apr 2022 00:10:18 +0200 Subject: [PATCH] Checks if all licenses are free before marking the software as free --- licenses.json | 8 +++++++ modules/__pycache__/render.cpython-310.pyc | Bin 0 -> 3172 bytes modules/__pycache__/search.cpython-310.pyc | Bin 0 -> 1891 bytes modules/render.py | 25 ++++++++++++++++----- 4 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 licenses.json create mode 100644 modules/__pycache__/render.cpython-310.pyc create mode 100644 modules/__pycache__/search.cpython-310.pyc diff --git a/licenses.json b/licenses.json new file mode 100644 index 0000000..5ad845d --- /dev/null +++ b/licenses.json @@ -0,0 +1,8 @@ +{ + "licenses": [ + "GNU GPL v3.0", + "GPL3", + "GPL3+", + "MIT" + ] +} diff --git a/modules/__pycache__/render.cpython-310.pyc b/modules/__pycache__/render.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b75ff1b422a4affec9c965d2a4e982a97dea6af9 GIT binary patch literal 3172 zcmZ`*&2QYs73XldyWB5XajaNMVuxm8H|tp1N@y=KwWyI)Mgc=LAO&d`CF?A?a_1ySCP8NDOD@&3kX&y!ZHf zlXf~y15bSR_~>767{NTDdU) z^pmM6$#XL|FUho$8=n}zd2?#z*nLfn+tX@Z&8-uY-^mHB-ZZALF(Icbr`K{K!GA%p zw$(5`gXI?9iwe$A+c#dL)c1`|L-fxet=?awQ3ICSdt8~Cb)qm}iC|*mbCD(m;e|b? zyig1WyIrfW(lJX4OLJIJ>eHeUv7}q$7C4G}?8{)pL}5{1`h&I~MTc`8MSV6J%++pv zZSW4n{=42Ar7`RIT!znjyPUC)(|F8eC{r$aaY`o<6Ftrn%J|0kyr_jjF|{EoZsTK- zHfa(YUmLGQ%x}#v+ZB^6|Ho{6@D0BPmOur2{wTo~nhwTSI2wXsqE)DwlP?T@18z3g z(9_DaB8_r(0iN8T7Tj-SOBf*#SgEZUw7zECG^njsJ~I+)?%td{Cn{BjekfGZF&0 z7vOqVjp!|Uo4!XKdWX97efj~tOYhMi{k1u5=1uHyf7((u=dGE|Rq^-Jzd`oHnO$9I zZsza>G~d@Wb(*F=%|}?nY3KvJ<3Ay_u1AnZl5Xtn>J&T3YE8!*ZT7QP(+lIFBY3dm z7S$+BPLOtCkS5t3*YP8{<334;sp|-N9|$im1huQ%?iyb}{9GS?ez^&cfNT;FBBoNy+bp7WHa zM-hv~HZ*MYvt{py_wOY~V*IfDW`Artcsy-RUyr2^i3g4xp;70zns$_OWcfM|has{G8Yk7M2z9)IVOE~b+$llS6+DbXy{4r;#s}u*j}I3IZm8Q_d#<8RwX%akl!4L^2Lz zbtooBQ78aIj!d(gzXV_j&E@Qd5nJDd5?_jJW#9iovn-NVe<-knhTh}Y4_LN>Xb-s` z$6+#bp7_ad;t!eVHjDOrRQL?BEnJlW4@tE;$yRgPM6|ZCC!a4@v7Ojyl=6GIM>WBr23KH^VWnBG?9SL;~ zOZ|*RGw>xFraVMBAb|$@^0TBBj$|CYjS-*)2;Q*BGLTy#xJlk6HGHq@*=ohAv`yf; zxkN0}Zre>g!@8}x%Wm zK^5yNnywFDVgM{63X7xxY$GVrDAmBNEmbk57Oj+}8n}A59MKA@$6Z>TR;Brhf(oLF zIw}U=EU7sPx7f@rv31(Q9(BD33VOMEVFKAf*Cjf;uVSVf07{iV=Sq=OptD)7f~!Qz z7vJGIC`-FN7w%eIRl=e!CPQSb)M3{iKncHvl``Db<8+cx?ka++u>3vsQMLL?2wO89 zzz6X=EQwWoY^!P7aQ-TyxlC3~6(>a2=J?^EZ| zQaB`05jN$5+qg&UyF*D>$f vxQ~{XN1gOKwO=K?&PeTa&3$EySNqsrsi3ctRj94ow!$KN$!7Lj?au!IZ4?+4 literal 0 HcmV?d00001 diff --git a/modules/__pycache__/search.cpython-310.pyc b/modules/__pycache__/search.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..232ccb21b18029e22ca199dfadc40ff341d69b48 GIT bin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@@ def suggestions(page, json): free = False if "licenses" in i[-1] and i[-1]["licenses"]: - free = True + has_license = True + free = isFree(i[-1]["licenses"]) if not i[0] or i[-1] == json or not free: continue