Skip to content

Commit

Permalink
In the TV-Index fixed tv-break-distribution dict
Browse files Browse the repository at this point in the history
  • Loading branch information
spoterianski committed Jun 28, 2023
1 parent e9d4a33 commit fdf9267
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 58 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,12 @@
# Changelog

All notable changes to this project will be documented in this file.
## [1.1.10] - 2023-06-28

### Updated

- In the TV-Index fixed tv-break-distribution dict

## [1.1.9] - 2023-06-26

### Added
Expand Down
57 changes: 1 addition & 56 deletions mediascope_api/mediavortex/catalogs.py
Expand Up @@ -65,7 +65,7 @@ class MediaVortexCats:
'tv-ad-position': '/dictionary/tv/ad-position',
'tv-breaks-style': '/dictionary/tv/breaks-style',
'tv-breaks-position': '/dictionary/tv/breaks-position',
'tv-break-distribution': '/dictionary/tv/breaks-distribution',
'tv-breaks-distribution': '/dictionary/tv/breaks-distribution',
'tv-breaks-content': '/dictionary/tv/breaks-content',
'tv-program-producer-country': '/dictionary/tv/program-producer-country',
'tv-program-producer': '/dictionary/tv/program-producer',
Expand Down Expand Up @@ -4579,58 +4579,3 @@ def get_tv_company_category(self, company_category_id=None, name=None, ename=Non
}

return self._get_dict('tv-company-category', search_params, body_params, offset, limit, use_cache)

def get_tv_brand_list(self, brand_list_id=None, name=None, ename=None, order_by=None,
order_dir=None, offset=None, limit=None, use_cache=True):
"""
Получить списки брендов рекламы
Parameters
----------
brand_list_id : string
Ид для фильтрации
name : string
Имя для фильтрации
ename : string
Английское имя для фильтрации
order_by : string
Поле, по которому происходит сортировка
order_dir : string
Направление сортировки данных. Возможные значения ASC - по возрастанию и DESC - по убыванию.
offset : int
Смещение от начала набора отобранных данных
limit : int
Количество записей в возвращаемом наборе данных
use_cache : bool
Использовать кэширование: True - да, False - нет
Если опция включена (True), метод при первом получении справочника
сохраняет его в кэш на локальном диске, а при следующих запросах этого же справочника
с такими же параметрами - читает его из кэша, это позволяет существенно ускорить
получение данных.
Returns
-------
result : DataFrame
DataFrame со списками брендов рекламы
"""

search_params = {
'orderBy': order_by,
'orderDir': order_dir
}

body_params = {
"id": brand_list_id,
"name": name,
"ename": ename
}

return self._get_dict('tv-brand-list', search_params, body_params, offset, limit, use_cache)
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -7,7 +7,7 @@
setup(
name='mediascope_api_lib',
packages=find_packages(),
version='1.1.9',
version='1.1.10',
description='Library for work with the Mediascope-Delivery-API',
long_description=long_description,
long_description_content_type="text/markdown",
Expand All @@ -19,7 +19,7 @@
requires=['pandas', 'requests', 'pyparsing'],
install_requires=['pandas', 'requests', 'pyparsing'],
url='https://github.com/MEDIASCOPE-JSC/mediascope-api-lib',
download_url='https://github.com/MEDIASCOPE-JSC/mediascope-api-lib/tarball/v1.1.9',
download_url='https://github.com/MEDIASCOPE-JSC/mediascope-api-lib/tarball/v1.1.10',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.6",
Expand Down

0 comments on commit fdf9267

Please sign in to comment.