From dfd2c33657af85a4477cb6cf18851fc9cc0dc585 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 5 May 2013 10:14:10 +0200 Subject: [PATCH] Extend files, not append --- couchpotato/core/plugins/release/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/release/main.py b/couchpotato/core/plugins/release/main.py index 4967bce0..6618a8be 100644 --- a/couchpotato/core/plugins/release/main.py +++ b/couchpotato/core/plugins/release/main.py @@ -87,7 +87,7 @@ class Release(Plugin): # Add the release files in batch try: added_files = db.query(File).filter(or_(*[File.id == x for x in added_files])).all() - rel.files.append(added_files) + rel.files.extend(added_files) db.commit() except Exception, e: log.debug('Failed to attach "%s" to release: %s', (cur_file, e))