Skip to content

Commit

Permalink
Add queue ID to renamehistory, else just put in 0
Browse files Browse the repository at this point in the history
  • Loading branch information
RuudBurger committed Nov 27, 2010
1 parent 7bf01dc commit 0967b0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/lib/cron/renamer.py
Expand Up @@ -318,7 +318,11 @@ def renameFiles(self, movie):
h = RenameHistory()
Db.add(h)

h.movieQueue = movie['queue'].id if movie['queue'] else 0
try:
h.movieQueue = movie['queue'].id
except:
h.movieQueue = 0

h.old = unicode(old.decode('utf-8'))
h.new = unicode(dest.decode('utf-8'))
Db.flush()
Expand Down

0 comments on commit 0967b0f

Please sign in to comment.