From 573c198c861bd829041c3fe67e055d3271871207 Mon Sep 17 00:00:00 2001 From: "Braun,Naomi" Date: Wed, 3 Jan 2024 11:16:54 -0500 Subject: [PATCH] Remove 'all' option from searchData, remove compiled byte code python files --- project/__pycache__/__init__.cpython-39.pyc | Bin 355 -> 0 bytes project/__pycache__/routes.cpython-39.pyc | Bin 7964 -> 0 bytes .../__pycache__/__init__.cpython-39.pyc | Bin 315 -> 0 bytes .../queries/__pycache__/routes.cpython-39.pyc | Bin 8268 -> 0 bytes project/queries/routes.py | 2 +- project/swagger_docs/authorOverlap.yml | 41 ------------------ .../conftest.cpython-39-pytest-7.4.3.pyc | Bin 1115 -> 0 bytes .../unit/__pycache__/__init__.cpython-39.pyc | Bin 153 -> 0 bytes .../test_queries.cpython-39-pytest-7.4.3.pyc | Bin 4290 -> 0 bytes 9 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 project/__pycache__/__init__.cpython-39.pyc delete mode 100644 project/__pycache__/routes.cpython-39.pyc delete mode 100644 project/queries/__pycache__/__init__.cpython-39.pyc delete mode 100644 project/queries/__pycache__/routes.cpython-39.pyc delete mode 100644 project/swagger_docs/authorOverlap.yml delete mode 100644 tests/__pycache__/conftest.cpython-39-pytest-7.4.3.pyc delete mode 100644 tests/unit/__pycache__/__init__.cpython-39.pyc delete mode 100644 tests/unit/__pycache__/test_queries.cpython-39-pytest-7.4.3.pyc diff --git a/project/__pycache__/__init__.cpython-39.pyc b/project/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index d9c94d8eb318f4e4f84db00e9c8181da58887fe1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 355 zcmYk2%}N6?5XUFk-LjSzJ^BiJF%M7?LGaj%c&UdFHWAitnvkT2f<5Vzc=Jhohg?1N z4aAc(DMAP4Pv#@P%tX!SQ$YLpdNMx@;G2R|;~3nc$4e9qnvG!DiZRe!SMRXmx_*GJ zIban!mYe%g#dS~7zY&4_4!uwkB=*Mk$kKe|w%Q}@6_8Rb4>$s0Cc$l!iCrD&W^Se2 zC~Kt55Nhh+xl-Pj^CyHBQ@;!G7)^*`bS|2mB^ABXM%Y2CcvPwUAbfByrcXl3VKXEt zulz1g`(RWuSoaqQixU)JEuZl~-?Qwh+&t4}WuB5Nub#*m_T~24I=vmu4eb$W_SyL# D9PCSQ diff --git a/project/__pycache__/routes.cpython-39.pyc b/project/__pycache__/routes.cpython-39.pyc deleted file mode 100644 index 0b866bd401de9e60356be5914e28afdb2f496e42..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7964 zcmd6s-*4O26~}ogillzpNo+SRx>QSBFWNfGb-Oj~@}o`cbO|~qh`lD!(z&uOZOf5F z>5_J0f!c;S7={5GvLMevvH=4U><`$}9{Mm8d)&hi@O3Y1v8QdofFQtj&LKrnzij7M zF&Vrf&%NY1B(Kire6I_sR9u2j?9V?is&7cr-|!&(QQ+V`*sL4SaEY_BRAG5mk@IpT zl8-R7$z>(4@JK$&mAuNMT)i&kHA7#EagFOMjK_W{^Egjjm$q0wPWEJAPw_O_6J#F> z?8AHy*^^}78`$^p5wfSaJTGNOKZmHKY{b>pEVEi#-gGr#)YlEmc2kwY6=P8tR?Vzh z#$4m&Rokvv@8)uq5-(U)!@g>YE0gP1u4b6EvXN^{3>sjHl|r@DDA*;qQm%*|Tb~H* z;PX2PoAnVioHeD!0b9Dm9O*7=GFw`c9kv*;6)tZvCS8!KlZph^=;k>lHDx9>Mr_6L z`!2!LY|1~9t8wppN}7@!2KO16YrL5IzGVn2S2j({*sNgd-O9{~#%R&3R*fPCn6cK2 zMZ>a|*UMSe)vS8CWE*d~nm-~RId5LgCxm%*ak)^mO|j`lYob)O-RP_krpQL}8edvm zE|m>e!E;<@+>=BCZtdYaeIh8D+z-PGX0cE!GXk;Ol-kIUoIjP&uvX3UN{+7|p2u0+IrN8|Cg zrKSeo3HsLWs7~xIOb?4MSjg8<;4AL?dIY`0yY%(QQQ&%?k*_HE`e8HC;p?X%UwZ;y3C|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<(obqaeV~xs^y>$bniDdvR(978fw)8g%WzD( zHKx}BBe2f!D~?tbaSWnrq;v42Xs>)0G1S%v7e`UVpM=dy?kqvWtDI8+_|DSd1Xwyt zhXt^7mJZ8cfzqL=LRp}}nx;$X-doeW+|&UlDx_>3ih^5?%3}Zv)rpEf!9K2Us*VOl zfmcWX_IScy!^Hh$P!u>YI^~bn938Pycc>`%ki2 z27CMhMq?p?@oC<=YyAr<3m(v!URltfqNnX~qr>B;aD+vNcaL7-)5qh$NEBRQgmOWp z;=+rB3L-%FWkRM3$b=Q+&`M;2d*UrY$V?J4lkohz#T)6ifuQVR4`tyNCE>tVJ}pe{ zf;@o9#{y3)F&*`mAp5c>r09Am^h_e|URcdGn%&9ysr~dKU>gSUFTs7b@yBQFrO)c> z^V9j+#xs9Ped5nP5pSb3UABkqG_0R^u+1Qu;Ee4_D~>|0&!)OriSl|dAyHC?xJbow zr{Z^$Veb!-Cri+DK(QN$9qX>R=GqCu7WM)(65tM?(2f8MTPv-{!AmynMwiP4>k6$* zdj$j)22tqDr~C?}CXD6MwR{|(k+)AvE?EnA( diff --git a/project/queries/__pycache__/__init__.cpython-39.pyc b/project/queries/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index 510c28ae2c780b6722b8a4679e63884555efbc60..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 315 zcmYk1J5B^K42F|=?JQ#1a|{K!073|Q8bmXV71mx9NG3xvQ*22|!9loETB^AM6`p-a zSn_B6@^8!5tJRs{m_A?VgX_;M{zu8;mNQ;5P@uHJ$yQ215;Mv$$Koq*b1bp4g)7@q z3S2yjrk>a@8kv@NcBDR-ZfF(%b_CF_ok1Pp`LsWYP_g4%g!!dCe(%*&q!5+$KGM$3R2z?^_Ol0q?v3h$ hf2GZ!jwdPr)0qL_s^6vh+Ibu;-OQK8f^nW*WPhj7SDyd? diff --git a/project/queries/__pycache__/routes.cpython-39.pyc b/project/queries/__pycache__/routes.cpython-39.pyc deleted file mode 100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Zpfwc&M_$yAKXf2oS=sy(tu~LPv7L5~F%rmiaHiW4Fu1nTqNfw=k K>pWanlI*|8tH{Ct diff --git a/project/queries/routes.py b/project/queries/routes.py index aee413b..cad9f9b 100644 --- a/project/queries/routes.py +++ b/project/queries/routes.py @@ -23,7 +23,7 @@ def connect_to_db(): @swag_from('../swagger_docs/getSearchData.yml') def get_search_data(): searches = [x.lower() for x in request.json['categories']] - if not set(searches).issubset(['all', 'papers', 'organizations', 'authors', 'grants', 'keywords']): + if not set(searches).issubset(['papers', 'organizations', 'authors', 'grants', 'keywords']): return make_response("Invalid value in search requests", 400) conn = connect_to_db() diff --git a/project/swagger_docs/authorOverlap.yml b/project/swagger_docs/authorOverlap.yml deleted file mode 100644 index dee6aa2..0000000 --- a/project/swagger_docs/authorOverlap.yml +++ /dev/null @@ -1,41 +0,0 @@ -Endpoint for pulling all authors with common data elements ---- -parameters: - - name: body - in: body - required: False - schema: - type: object - properties: - papers: - type: array - items: - $ref: '#/definitions/UniqueIdentifier' - authors: - type: array - items: - $ref: '#/definitions/UniqueIdentifier' - orgs: - type: array - items: - $ref: '#/definitions/UniqueIdentifier' - grants: - type: array - items: - $ref: '#/definitions/UniqueIdentifier' - terms: - type: array - items: - $ref: '#/definitions/UniqueIdentifier' - dates: - $ref: '#/definitions/DateRange' -responses: - 200: - description: A list of all authors that match the filter - schema: - $ref: '#/definitions/DataList' - # examples: - # application/json: {'papers': [{"id": "https://midasnetwork.us/papers/The-first-MIDAS-paper-ever", - # "name": "The first MIDAS paper ever."}, - # {"id": "The-first-MIDAS-paper-ever---Response", - # "name": "The first MIDAS paper ever - response."}]} \ No newline at end of file diff --git a/tests/__pycache__/conftest.cpython-39-pytest-7.4.3.pyc b/tests/__pycache__/conftest.cpython-39-pytest-7.4.3.pyc deleted file mode 100644 index 2ebd1e2a1fbd37004f06a0543c23dee7f880de0c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1115 zcmZuw&5qMB5VoB(P1APU6%s!Z2gEHL8j!dkq18UY9#{b)m*9=vZi@4R?XcTw_f)Pc z-T=XIpMv-Bl@qVP1;!3tRe&Q;X1?*nGxJU8cpM>E2!Luo!d8xNyu`UI(`j{&vM zoBw%V?0OkGM%VZ#_N2Ym3|*?ZD0rpQA*7$>b*1^aj)@t}1y%2CP3fLJR#c0uJ9&+y zP59@tV5B|fZLp=-_6RJ$vw*1H(Rx4W_)tmx zflEP~1jz6i)pR{PEtjjTp^}!$^cq=II_~my zt>}auTXRd)i>#sE3%8m?n5!JVS)Budx$@Ok%}9oSh>QxFfy2#;W}qNv-y0ReRh AlmGw# diff --git a/tests/unit/__pycache__/__init__.cpython-39.pyc b/tests/unit/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index 035b5980d7d43fea019a572c7f30bbc245ba8472..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 153 zcmYe~<>g`kg40veQ$h4&5P=LBfgA@QE@lA|DGb33nv8xc8Hzx{2;!HWerR!OQL%nb zetvOkWiE)+PtH$C)z8gLNi2qt@rebQ`X#BwCB^!sd6^~p@$s2JDn4GXpz;=nO>TZl OX-=vg$lT9B%m4u6lO-D+r4CvW~-xixjtUK`u$$L_sZ2|JRVs1 z{r!u8-Mwj9|Im%YpM%DSc;qipP>b53HM6U?6SW-6wjy`dw(F5j)UA4YvtHHXg#BnR z8#JTC*^suV`+I9PqV}(?N&72kv_78LWp^W!n6GwATlX}-8+ecK{0xu$5+l^6PT+Yppz1x>IJ$~7`YZYC3 zgWlYCxs7^H^)TAs_b%;E?cc#bu2r~rIz?LzHp9XNo)NILH{+sDzf}zO{r%umyBGq+ z5bx1`w0D4VydQsN%fCXG#yJMgTY99zdHV_{B)$WQjv8FrpV{L38kepE>up`vSpUZg z(!bEsnhm6XRY@E&1EZ?1-@KuzY7d+D2-@x(to?bV&8f7#sw7dz+IQ&Pmwnjch<=;C zvp=fra@^SE`2XzEhHd(I26%>eM#Y#~aEf<7e*OMhsZ@U8`w^!^#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