def latest_release(product='firefox', platform=None, channel=None): if not platform: platform = 'desktop' elif platform == 'android': product = 'firefox for android' elif platform == 'ios': product = 'firefox for ios' if not channel: channel = 'release' elif channel in ['developer', 'earlybird']: channel = 'beta' elif channel == 'organizations': channel = 'esr' return get_latest_release_or_404(product, channel)
def latest_release(product='firefox', platform=None, channel=None): if not platform: platform = 'desktop' elif platform == 'android': product = 'firefox for android' elif platform == 'ios': product = 'firefox for ios' if not channel: channel = 'release' elif channel in ['developer', 'earlybird']: channel = 'beta' elif channel == 'organizations': channel = 'esr' return get_latest_release_or_404(product, channel)
def latest_release(product="firefox", platform=None, channel=None): if not platform: platform = "desktop" elif platform == "android": product = "firefox for android" elif platform == "ios": product = "firefox for ios" if not channel: channel = "release" elif channel in ["developer", "earlybird"]: channel = "beta" elif channel == "organizations": channel = "esr" return get_latest_release_or_404(product, channel)