File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ def completed(self: "TV") -> None:
144
144
"""Create remaining seasons and episodes for a TV show."""
145
145
146
146
seasons_to_update = []
147
- seasons_to_create = []
148
147
episodes_to_create = []
149
148
150
149
tv_metadata = tmdb .tv (self .media_id )
@@ -175,13 +174,12 @@ def completed(self: "TV") -> None:
175
174
related_tv = self ,
176
175
user = self .user ,
177
176
)
178
- seasons_to_create . append (season_instance )
177
+ Season . save_base (season_instance )
179
178
episodes_to_create .extend (
180
179
season_instance .get_remaining_eps (season_metadata ),
181
180
)
182
181
183
182
Season .objects .bulk_update (seasons_to_update , ["status" ])
184
- Season .objects .bulk_create (seasons_to_create )
185
183
Episode .objects .bulk_create (episodes_to_create )
186
184
187
185
You can’t perform that action at this time.
0 commit comments