diff --git a/src/web/php/test_sendmail.php b/src/web/php/test_sendmail.php index a92ffd7..274d644 100644 --- a/src/web/php/test_sendmail.php +++ b/src/web/php/test_sendmail.php @@ -13,7 +13,7 @@ $parameters = array( "register_date" => $registerDate, ); -$array = array( +$recipientParam = array( "maestro_name" => $maestroName ); @@ -27,8 +27,8 @@ $mailSender->setSenderInfo($chocomae->sender_name, $chocomae->sender_email); $mailSender->makePostParam(337); $mailSender->setParameters($parameters); -$mailSender->addRecipient("jisangs@daum.net", "삼화초", "R", $array); -$mailSender->addRecipient("support@jinaju.com", "초코마에", "B", $array); +$mailSender->addRecipient("jisangs@daum.net", "삼화초", "R", $recipientParam); +$mailSender->addRecipient("support@jinaju.com", "초코마에", "B", $recipientParam); // $mailSender->showSettings(); $mailSender->send(); diff --git a/src/web/python/chocomae/backup_unregister_maestro.py b/src/web/python/chocomae/backup_unpaid_maestro.py similarity index 97% rename from src/web/python/chocomae/backup_unregister_maestro.py rename to src/web/python/chocomae/backup_unpaid_maestro.py index c3c4831..f7d988f 100644 --- a/src/web/python/chocomae/backup_unregister_maestro.py +++ b/src/web/python/chocomae/backup_unpaid_maestro.py @@ -35,7 +35,7 @@ def backup_unregister_maestro_table_file(): command_db_backup = command + user + password + transaction + db + table + where_clause + output_filename # 'mysqldump -u "${DBUSER}" -p"${DBPASS}" --single-transaction "${DBNAME}" "${filename}" --where="DATE(${record_date})=CURDATE()" > "${filename}.dump.bydate.sql"' print(command_db_backup) - subprocess.call(command_db_backup) + # subprocess.call(command_db_backup) unpaidMaestroMan = UnpaidMaestroManager(mode) diff --git a/src/web/python/chocomae/remove_unpaid_maestro.py b/src/web/python/chocomae/remove_unpaid_maestro.py deleted file mode 100644 index 36bd032..0000000 --- a/src/web/python/chocomae/remove_unpaid_maestro.py +++ /dev/null @@ -1,13 +0,0 @@ -# from batch.unpaid_maestro_manager import UnpaidMaestroManager -# from lib.mail.mail_sender import MailSender -from lib.mail.mail_sender_example import MailSenderExample - -''' -umMan = UnpaidMaestroManager() -maestro_list = umMan.get_unpaid_7days_maestro_list() -# for item in maestro_list: -# print(item) -''' - -# mailSender = MailSenderExample() -# mailSender.send_temp_mail() \ No newline at end of file diff --git a/src/web/python/chocomae/test_mail.py b/src/web/python/chocomae/test_mail.py index 6a92a4f..c34141a 100644 --- a/src/web/python/chocomae/test_mail.py +++ b/src/web/python/chocomae/test_mail.py @@ -1,6 +1,6 @@ import subprocess -php +php command_db_backup = command + user + password + transaction + db + table + where_clause + output_filename # 'mysqldump -u "${DBUSER}" -p"${DBPASS}" --single-transaction "${DBNAME}" "${filename}" --where="DATE(${record_date})=CURDATE()" > "${filename}.dump.bydate.sql"' print(command_db_backup) diff --git a/src/web/python/chocomae/show_path.py b/src/web/python/chocomae/test_show_path.py similarity index 100% rename from src/web/python/chocomae/show_path.py rename to src/web/python/chocomae/test_show_path.py