BO 1.25 App Texts

This commit is contained in:
Tibor Bossanyi (Freelancer)
2021-09-09 07:49:13 +02:00
parent a9d34f65b8
commit 925c35f329
9 changed files with 97 additions and 13 deletions
@@ -1,12 +1,17 @@
import requests
import logging
from django.db import connections
import datetime
from ..models.customer import Customer
class MauticHelper:
def syncTrial(self):
tenDays = datetime.datetime - datetime.timedelta(days=10)
qs = Customer.objects.raw(
'SELECT * from customer WHERE trial_date < "' + tenDays + '" and trial_date is not null')
def sync(self):
logger = logging.getLogger(__name__)