No reason really to pass in fetch_order anyway...
I think this is legacy code from get_display_media being a utility, or something. Removed! (Thanks for pointing this out, Elrond!) This commit sponsored by Tristan Chambers. Thank you!
This commit is contained in:
parent
4f239ff194
commit
e77df64fd1
@ -126,18 +126,16 @@ class MediaEntryMixin(object):
|
|||||||
"""
|
"""
|
||||||
return cleaned_markdown_conversion(self.description)
|
return cleaned_markdown_conversion(self.description)
|
||||||
|
|
||||||
def get_display_media(self, fetch_order=None):
|
def get_display_media(self):
|
||||||
"""
|
"""Find the best media for display.
|
||||||
Find the best media for display.
|
|
||||||
|
|
||||||
Args:
|
We try checking self.media_data.fetching_order if it exists to
|
||||||
- fetch_order: the order we should try fetching images in.
|
pull down the order.
|
||||||
If this isn't supplied, we try checking
|
|
||||||
self.media_data.fetching_order if it exists.
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
(media_size, media_path)
|
(media_size, media_path)
|
||||||
or, if not found, None.
|
or, if not found, None.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
fetch_order = self.media_manager.get("media_fetch_order")
|
fetch_order = self.media_manager.get("media_fetch_order")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user