Changed record filter by date
implements bp optimize-date-filtering Change-Id: I6d4157992613a8188a94e3ad041ebd36768b0077
This commit is contained in:
@@ -68,6 +68,10 @@ def week_to_date(week):
|
||||
strftime('%Y-%m-%d %H:%M:%S'))
|
||||
|
||||
|
||||
def timestamp_to_day(timestamp):
|
||||
return timestamp // (24 * 3600)
|
||||
|
||||
|
||||
def check_email_validity(email):
|
||||
if email:
|
||||
return re.match(r'[\w\d_\.-]+@([\w\d_\.-]+\.)+[\w]+', email)
|
||||
|
||||
Reference in New Issue
Block a user