Fixed mailing_db_table variable
This commit is contained in:
pare
f7836b1fae
commit
ee98759278
S'han modificat 1 arxius amb 1 adicions i 1 eliminacions
|
@ -146,7 +146,7 @@ delete_inactives(mailing_db, mailing_db_user, mailing_db_table, deletion_accepte
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
deletion_accepted = False
|
deletion_accepted = False
|
||||||
query = "select account_id, username, email, to_be_deleted, feedback, recipient_error, elapsed_days from inactive_users where to_be_deleted = 'f' and feedback = 'f' and recipient_error = 'f' and emailed_at < now() - interval '31 days'"
|
query = "select account_id, username, email, to_be_deleted, feedback, recipient_error, elapsed_days from " + mailing_db_table + " where to_be_deleted = 'f' and feedback = 'f' and recipient_error = 'f' and emailed_at < now() - interval '31 days'"
|
||||||
id_array = []
|
id_array = []
|
||||||
username_array = []
|
username_array = []
|
||||||
delete_inactives(mailing_db, mailing_db_user, mailing_db_table, deletion_accepted, query, id_array, username_array)
|
delete_inactives(mailing_db, mailing_db_user, mailing_db_table, deletion_accepted, query, id_array, username_array)
|
||||||
|
|
Loading…
Referencia en una nova incidència