Compare commits

..

No commits in common. "092c1b318412ad57673d67373f84d58f97cddaf2" and "503ae10e89d133ce9cfbd23e24df105bd84a5c0d" have entirely different histories.

7 changed files with 4 additions and 19 deletions

View file

@ -145,11 +145,7 @@ class ClipManager(Manager):
keys = layer_ids + ['annotations', 'text', '*'] keys = layer_ids + ['annotations', 'text', '*']
conditions = data.get('query', {}).get('conditions', []) conditions = data.get('query', {}).get('conditions', [])
conditions = flatten_conditions(conditions) conditions = flatten_conditions(conditions)
conditions_ = [] conditions = list(filter(lambda c: c.get('key') in keys, conditions))
for c in conditions:
if c.get('key') in keys and c not in conditions_:
conditions_.append(c)
conditions = conditions_
operator = data.get('query', {}).get('operator', '&') operator = data.get('query', {}).get('operator', '&')
def parse(condition): def parse(condition):

View file

@ -95,7 +95,7 @@ def findClips(request, data):
if 'keys' in data: if 'keys' in data:
qs = order_query(qs, query['sort']) qs = order_query(qs, query['sort'])
qs = qs[query['range'][0]:query['range'][1]] qs = qs[query['range'][0]:query['range'][1]]
#qs = qs.select_related('item') qs = qs.select_related('item')
layers = settings.CONFIG['layers'] layers = settings.CONFIG['layers']
entity_layer_ids = [k['id'] for k in layers if k['type'] == 'entity'] entity_layer_ids = [k['id'] for k in layers if k['type'] == 'entity']

View file

@ -170,13 +170,6 @@ LOGGING = {
} }
} }
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'cache',
}
}
AUTH_PROFILE_MODULE = 'user.UserProfile' AUTH_PROFILE_MODULE = 'user.UserProfile'
AUTH_CHECK_USERNAME = True AUTH_CHECK_USERNAME = True
FFMPEG = 'ffmpeg' FFMPEG = 'ffmpeg'

View file

@ -785,7 +785,7 @@ def setUI(request, data):
if isinstance(p, list): if isinstance(p, list):
p = p[getPositionById(p, key)] p = p[getPositionById(p, key)]
else: else:
if key not in p or not isinstance(p[key], dict): if key not in p:
p[key] = {} p[key] = {}
p = p[key] p = p[key]
if value == None and keys[0] in p: if value == None and keys[0] in p:

View file

@ -10,4 +10,3 @@ requests==2.19.1
tornado<5 tornado<5
geoip2==2.9.0 geoip2==2.9.0
youtube-dl youtube-dl
python-memcached

View file

@ -100,7 +100,7 @@ pandora.ui.filterForm = function(options) {
id: list.id, id: list.id,
query: that.$filter.options('value') query: that.$filter.options('value')
}, function(result) { }, function(result) {
pandora.$ui.editPanel && pandora.$ui.editPanel.updatePanel(); editPanel.updatePanel && pandora.$ui.editPanel.updatePanel();
}); });
} else { } else {
pandora.$ui.list && pandora.$ui.list pandora.$ui.list && pandora.$ui.list

View file

@ -249,9 +249,6 @@ if __name__ == "__main__":
update_service('pandora-tasks') update_service('pandora-tasks')
if old < 5975: if old < 5975:
run('./bin/pip', 'install', '-r', 'requirements.txt') run('./bin/pip', 'install', '-r', 'requirements.txt')
if old <= 6064:
run('./bin/pip', 'install', '-r', 'requirements.txt')
run('./pandora/manage.py', 'createcachetable')
else: else:
if len(sys.argv) == 1: if len(sys.argv) == 1:
release = get_release() release = get_release()