|
@@ -513,7 +513,7 @@ class Dataflow_ActivteMQ_attachment(Dataflow_attachment):
|
|
|
|
|
|
def remove_attachment_postgres(self):
|
|
|
current_date = getCurrent_date(format="%Y-%m-%d")
|
|
|
- last_date = timeAdd(current_date,-30,format="%Y-%m-%d")
|
|
|
+ last_date = timeAdd(current_date,-2,format="%Y-%m-%d")
|
|
|
sql = " delete from attachment where crtime<='%s 00:00:00' "%(last_date)
|
|
|
conn = getConnection_postgres()
|
|
|
cursor = conn.cursor()
|