Skip to content
Snippets Groups Projects
Commit dfe45f8f authored by Eva Bardou's avatar Eva Bardou
Browse files

Add comment

parent b7abc0ca
No related branches found
No related tags found
1 merge request!94Handle recursive and element_type filters in cached list_transcriptions
Pipeline #78473 passed
......@@ -250,6 +250,8 @@ class TranscriptionMixin(object):
if self.use_cache:
if not recursive:
# In this case we don't have to return anything, it's easier to use an
# impossible condition (False) rather than filtering by type for nothing
if element_type and element_type != element.type:
return CachedTranscription.select().where(False)
transcriptions = CachedTranscription.select().where(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment