added pending to ombi
This commit is contained in:
parent
6665891b65
commit
73ce0057b5
1 changed files with 3 additions and 1 deletions
|
@ -65,13 +65,15 @@ class OmbiAPI(object):
|
||||||
for movie in movie_requests:
|
for movie in movie_requests:
|
||||||
hash_id = hashit(f'{movie.id}{movie.theMovieDbId}{movie.title}')
|
hash_id = hashit(f'{movie.id}{movie.theMovieDbId}{movie.title}')
|
||||||
status = None
|
status = None
|
||||||
# Denied = 0, Approved = 1, Completed = 2
|
# Denied = 0, Approved = 1, Completed = 2, Pending = 3
|
||||||
if movie.denied:
|
if movie.denied:
|
||||||
status = 0
|
status = 0
|
||||||
elif movie.approved and movie.available:
|
elif movie.approved and movie.available:
|
||||||
status = 2
|
status = 2
|
||||||
elif movie.approved:
|
elif movie.approved:
|
||||||
status = 1
|
status = 1
|
||||||
|
else:
|
||||||
|
status = 3
|
||||||
|
|
||||||
influx_payload.append(
|
influx_payload.append(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue