From 4d364f9f627ee0abe783ca71bdeda1dd10446c9e Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 9 Aug 2018 15:50:57 +0900 Subject: [PATCH] Update annotations api --- app/db.sqlite3 | Bin 241664 -> 241664 bytes app/server/api.py | 1 + 2 files changed, 1 insertion(+) diff --git a/app/db.sqlite3 b/app/db.sqlite3 index 25ee1a355a4ee63b4356df7be666d2194d1b3a0b..c2af20fe9d8c4524629d59284db73253bfb9f2d1 100644 GIT binary patch delta 1133 zcmah{OK%%h7@a#ahH--L*OG)#9<}2JsRinc$DZ+{s)SpYkObR}aT1M9N$iXrkH=%D znS?lwikm8IX)7-*A)#)lx?oX(7v6v(wSSmiP%9`4uCA`G zbiVUF&Ua3(`RBy$mdfRth+e)3O<5QVJ}o52M3`GH}NIh!sqLK{D-)D z-XS5j+H|>Zq&!<-l809F5l~7{hBMcO6$&x@ZfvvM<2(SS*}5V3|#6N=BG8vPnUd z`kj3H^pD7HpJ#X?pdXojzyGKa;S+d~=c{AqE^;*7rQiYF zt?!(=4$pB+4{EdMPUdBER-G#rjAX%5N3(xgzqrC)!6vv#!4L2|{0v)glW?v=wY9}^ z9VQcl5X;uKE}|Y1b%%mK;8(a0_uvkR`UW~!#*9quhi%+nL(lHOCY+$)V~FC1cnv4& zeYPQ7Ntw(P>_J6j4!B}-$%2tj&a1@&omjR{XNlx##qPH)+cRo9uNdT;u+J>0N;_)zj&(dCipMXw96m|l1-F+aHG0giks3mKRFXTXDBGE>%Y@24L6!VY zpMw`Ak@qzoevd4DT$F+W{uW0`&q2(sFbqfS8FkfkO!Hl_tZLZEP1+uJR{I3g`#S&b zK=ksG*tm*m7kY+;TNL~TKfxy4A{t!-?kSd~5Mt=Yrj>sF4H9shB2qsfBHkteUjz3v zi`qC_yH})p3BJ*m`4?!x2Eo5;ufjx3+}i3U*yf`ZY!a-wy{2mGdiMqP486|LmQ@O0 zvaFI3N|yId9iUC2RZ}1}Th7f1&QeBlE|unmoLkR%RH2me@S^wlbT$=^X|7066J_Cu zAeU!^crKd_1&0>p^0*d`$%}Foayg$5l>@w7uGuQgF0@qhR~RFa3zZc$ zuD_WN>*HEnA68`{tVIUL7DMIXe0*?J2u+Nu@nAd`nULL)!Qrf&Q*uKE{;|si*FRnE z^}4;M4xsJsYwM>OTVvw`<^@Dt-JqZWO)~mt@Jc@uLjN}#U2C3Z_7dV{3U0t zru!_I{nbvdlq*|F@K-WFjv!zw$NY!R5}^3K0yB)ZXaF-Z{DgMq4tzm%jFFDFIA#T_ z1~Ge9sI0o*XAU86G`Er0nuo|$5pHg>uaSqrE9jZg7k$vP9Y}DO>=%s}bx2M#`le4x z%h~s2rsKSLS8@FZa=&aF+|2?^GEB-Jouj(k2A;kZPp9dwiz@qZQIvwb)M4bv_zjuP Tx~P$mVw93_OLl5URQmq_?OA{7 diff --git a/app/server/api.py b/app/server/api.py index 3c2557f9..4f9372be 100644 --- a/app/server/api.py +++ b/app/server/api.py @@ -146,6 +146,7 @@ class AnnotationsAPI(generics.ListCreateAPIView): project = get_object_or_404(Project, pk=self.kwargs['project_id']) document = project.documents.get(id=self.kwargs['doc_id']) self.queryset = document.get_annotations() + self.queryset = self.queryset.filter(user=self.request.user) return self.queryset