Skip to content

Commit

Permalink
fix: remove language profile id
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Jan 24, 2023
1 parent b6c3fb0 commit 592a6b3
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.github/workflows/python.yml
.gitignore
README.md
docs/AddSeriesOptions.md
Expand Down
1 change: 0 additions & 1 deletion docs/ImportListResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
6 changes: 2 additions & 4 deletions sonarr/models/import_list_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

3 changes: 3 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pytest~=7.1.3
pytest-cov>=2.8.1
pytest-randomly>=3.12.0

0 comments on commit 592a6b3

Please sign in to comment.