Work on Cvent for IDAA
This commit is contained in:
@@ -243,11 +243,11 @@ def get_contact_list(external_id: str=None, email: str=None):
|
||||
# Updated 2022-02-02
|
||||
@logger_reset
|
||||
def get_recent_contact_list(
|
||||
from_created_on = datetime.datetime.utcnow() + datetime.timedelta(minutes=-60),
|
||||
from_created_on = None,
|
||||
to_created_on = None, # datetime.datetime.utcnow(),
|
||||
from_updated_on = datetime.datetime.utcnow() + datetime.timedelta(minutes=-60),
|
||||
from_updated_on = None,
|
||||
to_updated_on = None,
|
||||
get_only = 'created', # created, updated/modified
|
||||
# get_only = 'created', # created, updated/modified
|
||||
):
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
@@ -259,14 +259,16 @@ def get_recent_contact_list(
|
||||
|
||||
params = {}
|
||||
|
||||
from_created_on_str = from_created_on.isoformat()
|
||||
log.info(f'From Created On: {from_created_on_str}')
|
||||
if from_created_on:
|
||||
from_created_on_str = from_created_on.isoformat()
|
||||
log.info(f'From Created On: {from_created_on_str}')
|
||||
if to_created_on:
|
||||
to_created_on_str = to_created_on.isoformat()
|
||||
log.info(f'To Created On: {to_created_on_str}')
|
||||
|
||||
from_updated_on_str = from_updated_on.isoformat()
|
||||
log.info(f'From Updated On: {from_updated_on_str}')
|
||||
if from_updated_on:
|
||||
from_updated_on_str = from_updated_on.isoformat()
|
||||
log.info(f'From Updated On: {from_updated_on_str}')
|
||||
if to_updated_on:
|
||||
to_updated_on_str = to_updated_on.isoformat()
|
||||
log.info(f'To Updated On: {to_updated_on_str}')
|
||||
|
||||
Reference in New Issue
Block a user