Contact Files
This commit is contained in:
@@ -63,6 +63,14 @@ class ProductsContacts(db.Model):
|
||||
raise ValueError(f"Database integrity error: {err}")
|
||||
return product_contact_data
|
||||
|
||||
@classmethod
|
||||
def get_member_contact_count(cls,member_id, day_limit):
|
||||
logger.info(f"Counting Contact Data {member_id} for {day_limit} days -- ")
|
||||
query = cls.query
|
||||
query = query.filter(cls.member_id == member_id)
|
||||
total_count = query.count()
|
||||
return total_count
|
||||
|
||||
@classmethod
|
||||
def get_all_contacts(cls,member_id, page=1, limit=20):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user