added pending to ombi

This commit is contained in:
Nicholas St. Germain 2018-12-18 21:15:41 -06:00
parent 6665891b65
commit 73ce0057b5

View file

@ -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(
{ {