Skip to content

Commit

Permalink
make it prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
oscie57 committed Jun 2, 2024
1 parent 807eea2 commit 1695414
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions theunderground/movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ def add_movie():

if dsmovie:
dsmovie_data = dsmovie[0].read()
validation_ds = validate_mobi_dsi(dsmovie_data)
genre = 1
validation_ds = validate_mobi_dsi(dsmovie_data)
else:
dsmovie_data = None
genre = 0
validation_ds = False

Expand All @@ -92,7 +93,7 @@ def add_movie():
db.session.commit()

# Now that we've inserted the movie, we can properly move it.
save_movie_data(db_movie.movie_id, thumbnail_data, movie_data, dsmovie_data if dsmovie and validation_ds else None)
save_movie_data(db_movie.movie_id, thumbnail_data, movie_data, dsmovie_data)

# Finally update the category if needed by S3
if s3:
Expand Down

0 comments on commit 1695414

Please sign in to comment.