mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:01:58 +01:00
Fixed pilerpurge deleting attachments
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
694aa107c2
commit
df339cb75a
@ -85,7 +85,7 @@ def purge_attachments_by_attachment_id(opts={}):
|
||||
cursor = opts['db'].cursor()
|
||||
|
||||
cursor.execute("SELECT i, piler_id, attachment_id, refcount FROM " +
|
||||
"v_attachment WHERE i IN (%s)" %
|
||||
"v_attachment WHERE refcount=0 AND i IN (%s)" %
|
||||
(format), opts['referenced_attachments'])
|
||||
|
||||
while True:
|
||||
|
Loading…
Reference in New Issue
Block a user