Commit graph

47 commits

Author SHA1 Message Date
j
0c99cbfaac fix findClips to return clips with annotations matching all conditions 2018-08-09 10:53:23 +01:00
j
dbf740e55e use .editorconfig 2018-06-19 08:33:26 +02:00
j
12f3901c9a py3 filter->list(filter 2017-02-16 14:24:51 +01:00
j
1468ddbecb towards supporting python 2 and 3
- use absolute_imports
- make use of six.moves
- use exec instead of execfile
- use list(dict) instead if dict.keys()
2016-08-25 18:34:36 +02:00
j
3d6d1be2e6 include oshash in video url to avoid cache issues 2016-08-13 15:36:00 +02:00
3f5be0bd27
findClips: look up entity names (fixes #2804) 2016-04-19 12:28:58 +01:00
d0129a4416
findClips: avoid O(n²) lookup of clip from annotation
This doesn't make much difference for small ranges, of course.
2016-04-19 11:25:12 +01:00
ba00bcbf7b
findClips: select_related('item') / ('item__sort')
Clip.public_id uses self.item.public_id.

Clip.json() uses self.item.sort, so we should select_related on that
rather than the clip's own sort field. (They are identical objects. Is
Clip.sort ever used directly?)

With this change, findClips() issues one query to fetch clips plus one
query per flavour of annotation; before, it issued two extra queries per
clip.
2016-04-19 11:25:06 +01:00
6dbb7f921a
findClips: only scan layers once 2016-04-19 11:14:25 +01:00
j
051a3578b4 inline django 1.9 version of ox.django 2016-02-20 10:41:23 +00:00
rolux
cada20f904 update api docs 2014-12-19 15:05:08 +00:00
j
9e9bf30c42 add new changelog and call add_changelog all over the place 2014-12-17 13:45:46 +00:00
j
b8b91592b5 always include empty annotations 2014-11-21 16:24:49 +00:00
j
16f1dbca93 fix findClips for layers no in clipLayers 2014-11-17 14:12:29 +00:00
j
ceb507020b data is passed to api functions now 2014-10-06 08:26:43 +00:00
j
3232ce6989 rename Item.itemId to Item.public_id 2014-09-19 12:26:46 +00:00
j
70cfee4f73 dont fail if no subtitles layer is defined 2013-03-14 07:32:59 +00:00
j
e706fbfb9b api documentation takes and returns 2013-03-04 19:35:06 +00:00
j
661e005b78 dont expose ids of empty subtitles, fixes #1333 2013-03-02 08:57:39 +00:00
j
8b082023e9 add some more docs for findClips 2012-06-26 13:59:27 +02:00
j
81cef44d19 dont save clip/sequence ids in db 2012-06-18 16:36:04 +02:00
j
950b6533b0 tweak clip table 2012-03-22 22:33:42 +01:00
j
8511769885 random clip sort 2012-03-22 20:40:37 +01:00
j
26c6987178 findvalue can be Null, clip random sort 2012-03-08 19:56:31 +01:00
j
e3b5e2a6e7 only update clip values after creation 2012-03-07 11:36:32 +01:00
j
6f9e9676cf add additional sort conditions to clip query, fixes #631 2012-03-01 15:53:29 +01:00
j
16cc495fb5 store clip values in clip db, cleanup if all annotations are gone, add additionalSort 2012-01-20 23:23:21 +05:30
j
09389f84dc only return matching annotations in findClips if query contains annotation conditions 2012-01-05 18:01:56 +05:30
j
e1989eed57 use ox.django.api instead of local copy 2012-01-04 01:48:47 +05:30
j
c8b59c34c6 text key clip lists 2011-12-30 13:30:38 +05:30
j
4a67150604 faster clip queries if keys include item keys 2011-12-29 22:34:53 +05:30
j
d070cb616b pad ids to len 7 for storage 2011-12-27 00:06:58 +05:30
j
28a577d69f use annotation find value 2011-12-26 21:05:39 +05:30
j
7eeb6dc107 add sortvalue to annotations to get better sort by text results 2011-11-03 12:31:46 +01:00
j
df9fc699ff remove layer of indirection 2011-11-02 15:06:34 +01:00
j
47685b87fe add layer flags to clips to avoid slow join with annotation/layer tables 2011-11-02 12:57:10 +01:00
j
e71421f597 only find places/events where words match fixes: #58 2011-10-30 12:55:46 +01:00
j
79f8a1d154 get all annotations at once and merge into clips 2011-10-29 13:04:25 +02:00
j
8bb18af181 more clip query speedups 2011-10-29 12:39:33 +02:00
j
d3fdb4f578 cache stream aspect ratio in clips table. speedup clips view 2011-10-29 12:01:41 +02:00
j
80ade383f9 itemsQuery/clipsQuery 2011-10-19 16:20:12 +00:00
j
aed064d7f2 distinct makes clip queries slow 2011-10-14 00:59:57 +02:00
j
d066835061 , 2011-10-09 13:01:16 +00:00
rolux
7fd64740aa new clip sort key scheme; fix for info line(s) in icon lists 2011-10-09 12:46:35 +00:00
j
bb728c9369 sort clips 2011-10-09 12:02:16 +00:00
j
be21595733 allow itemkeys to be requested in findClips 2011-10-09 13:44:50 +02:00
j
78b07dd64a findClips 2011-10-02 20:16:28 +02:00