today_signup_7days

This commit is contained in:
CHIEFSOFT\ameye
2024-11-29 02:48:13 -05:00
parent ec5a4d0e90
commit 570c42035b
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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
}