From 592a6b397967df120882ec83dd3317e5efeff0d5 Mon Sep 17 00:00:00 2001 From: Fuochi Date: Tue, 24 Jan 2023 10:27:29 +0400 Subject: [PATCH] fix: remove language profile id --- .github/workflows/python.yml | 12 ++++++++++++ .openapi-generator/FILES | 1 + docs/ImportListResource.md | 1 - requirements.txt | 5 +++++ sonarr/models/import_list_resource.py | 6 ++---- test-requirements.txt | 3 +++ 6 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/python.yml create mode 100644 requirements.txt create mode 100644 test-requirements.txt diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 0000000..1047217 --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,12 @@ +name: CD + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + cd: + uses: devopsarr/shared-workflows/.github/workflows/python_release.yml@main + secrets: inherit \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 80004de..b6aedff 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/python.yml .gitignore README.md docs/AddSeriesOptions.md diff --git a/docs/ImportListResource.md b/docs/ImportListResource.md index 791695f..e00bd30 100644 --- a/docs/ImportListResource.md +++ b/docs/ImportListResource.md @@ -22,7 +22,6 @@ Name | Type | Description | Notes **season_folder** | **bool** | | [optional] **list_type** | [**ImportListType**](ImportListType.md) | | [optional] **list_order** | **int** | | [optional] -**language_profile_id** | **int** | | [optional] ## Example diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b98ff3e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.25.3 +pydantic >= 1.10.2 +aenum >= 3.1.11 diff --git a/sonarr/models/import_list_resource.py b/sonarr/models/import_list_resource.py index e4bfc41..ecc027f 100644 --- a/sonarr/models/import_list_resource.py +++ b/sonarr/models/import_list_resource.py @@ -49,8 +49,7 @@ class ImportListResource(BaseModel): season_folder: Optional[bool] list_type: Optional[ImportListType] list_order: Optional[int] - language_profile_id: Optional[int] - __properties = ["id", "name", "fields", "implementationName", "implementation", "configContract", "infoLink", "message", "tags", "presets", "enableAutomaticAdd", "shouldMonitor", "rootFolderPath", "qualityProfileId", "seriesType", "seasonFolder", "listType", "listOrder", "languageProfileId"] + __properties = ["id", "name", "fields", "implementationName", "implementation", "configContract", "infoLink", "message", "tags", "presets", "enableAutomaticAdd", "shouldMonitor", "rootFolderPath", "qualityProfileId", "seriesType", "seasonFolder", "listType", "listOrder"] class Config: allow_population_by_field_name = True @@ -161,8 +160,7 @@ def from_dict(cls, obj: dict) -> ImportListResource: "series_type": obj.get("seriesType"), "season_folder": obj.get("seasonFolder"), "list_type": obj.get("listType"), - "list_order": obj.get("listOrder"), - "language_profile_id": obj.get("languageProfileId") + "list_order": obj.get("listOrder") }) return _obj diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..3a0d0b9 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +pytest~=7.1.3 +pytest-cov>=2.8.1 +pytest-randomly>=3.12.0