def _get_versions_since_switchover(provider_id): for version in sorted( provider_client.get_provider_versions(provider_id)['data'], key=lambda version: version['updated_at'] or '' ): if not version['updated_at']: continue if version['updated_at'] < PROVIDER_PRIORITY_MEANING_SWITCHOVER: continue yield version
def view_provider(provider_id): versions = provider_client.get_provider_versions(provider_id) return render_template('views/providers/provider.html', provider_versions=versions['data'])
def view_provider(provider_id): versions = provider_client.get_provider_versions(provider_id) return render_template("views/providers/provider.html", provider_versions=versions["data"])