today_signup_7days
This commit is contained in:
@@ -100,7 +100,7 @@ img {height: auto;}
|
||||
<div style="font-size: 10px;">People that completed the sign-up in last 7 days</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="bodycopy rr">{{today_signup_3days}}</td>
|
||||
<td class="bodycopy rr">{{today_signup_7days}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -72,7 +72,7 @@ long promo_email(long mailtype, CVars in, CVars &out){
|
||||
out["signupreport"] = CfgReadChar("transnotif.signupreport");
|
||||
|
||||
CVars yr;
|
||||
load_db_record(yr, "SELECT to_char(now(), 'yyyy') AS YYYY");
|
||||
load_db_record(yr, "SELECT to_char(now(), 'yyyy') AS YYYY, TO_CHAR(NOW(), 'Day Mon dd, yyyy hh:mm AM') AS report_date");
|
||||
vars2form(yr, form);
|
||||
|
||||
char * server_name = getenv("SERVER_NAME");
|
||||
|
||||
@@ -266,6 +266,12 @@ long RefreshPromoActivities(CVars in, CVars &out){
|
||||
if (f.empty()) continue;
|
||||
CVars rec;
|
||||
map_to_cvars(f, rec);
|
||||
|
||||
rec["points"] = "0"; rec["points"].set_valid( true );
|
||||
rec["today_signup"] = "0"; rec["today_signup"].set_valid( true );
|
||||
rec["today_signup_3days"] = "0"; rec["today_signup_3days"].set_valid( true );
|
||||
rec["today_signup_7days"] = "0"; rec["today_signup_7days"].set_valid( true );
|
||||
|
||||
promo_email(WRB_CRONJOB_PROCESS_PROMO, rec, out); // send the reminder email
|
||||
pgsql_query("UPDATE promo_admin SET updated = now() WHERE id = %lu ", rec["id"].Long()); // mo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user