Skip to content

Commit 91641ab

Browse files
author
susanodd
committed
Fix: Syntax type error and missing parameter in query.
1 parent 911bfbf commit 91641ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

signbank/dictionary/views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def missing_video_list(selected_datasets):
295295
glosses = Gloss.objects.filter(archived=False, morpheme=None, lemma__dataset__in=selected_datasets)
296296
for gloss in glosses:
297297
gloss_video_path = video_file_path(gloss)
298-
gloss_video = GlossVideo.objects.filter(gloss=gloss, version=0, glossvideonme=None)
298+
gloss_video = GlossVideo.objects.filter(gloss=gloss, version=0, glossvideonme=None, glossvideoperspective=None)
299299
if not gloss_video.count():
300300
# does not have GlossVideo object
301301
file_path = os.path.join(settings.WRITABLE_FOLDER, gloss_video_path)
@@ -309,7 +309,7 @@ def missing_video_view(request):
309309

310310
# check that the user is logged in
311311
if not request.user.is_authenticated:
312-
messages.add_message(self.request, messages.ERROR, _('Please login to use this functionality.'))
312+
messages.add_message(request, messages.ERROR, _('Please login to use this functionality.'))
313313
return HttpResponseRedirect(settings.PREFIX_URL + '/datasets/available')
314314

315315
selected_datasets = get_selected_datasets(request)

0 commit comments

Comments
 (0)