Manually enable users for WhatsApp Reminders
This commit is contained in:
@@ -385,12 +385,15 @@ public class TippligaSQLConnector {
|
|||||||
AND r.remaining_hours = {{remainingHours}})
|
AND r.remaining_hours = {{remainingHours}})
|
||||||
LEFT JOIN phpbb_users u
|
LEFT JOIN phpbb_users u
|
||||||
ON (b.user_id = u.user_id)
|
ON (b.user_id = u.user_id)
|
||||||
|
LEFT JOIN phpbb_footb_whatsapp_reminder_users wu
|
||||||
|
ON (u.username = wu.username)
|
||||||
LEFT JOIN phpbb_profile_fields_data pf
|
LEFT JOIN phpbb_profile_fields_data pf
|
||||||
ON (u.user_id = pf.user_id)
|
ON (u.user_id = pf.user_id)
|
||||||
WHERE ((d.league_type = 1 AND mb.match_no IS NOT NULL) OR d.league_type = 2)
|
WHERE ((d.league_type = 1 AND mb.match_no IS NOT NULL) OR d.league_type = 2)
|
||||||
AND (b.goals_home = '' OR b.goals_guest = '')
|
AND (b.goals_home = '' OR b.goals_guest = '')
|
||||||
AND r.timestamp IS NULL
|
AND r.timestamp IS NULL
|
||||||
AND m.status = 0
|
AND m.status = 0
|
||||||
|
AND wu.username IS NOT NULL
|
||||||
AND pf.pf_handynummer != ''
|
AND pf.pf_handynummer != ''
|
||||||
GROUP BY d.league_name, d.matchday, u.username, pf.pf_handynummer;
|
GROUP BY d.league_name, d.matchday, u.username, pf.pf_handynummer;
|
||||||
""".replace("{{remainingHours}}", "" + hours);
|
""".replace("{{remainingHours}}", "" + hours);
|
||||||
|
|||||||
Reference in New Issue
Block a user