Changed record filter by date

implements bp optimize-date-filtering

Change-Id: I6d4157992613a8188a94e3ad041ebd36768b0077
This commit is contained in:
pkholkin
2014-05-08 18:50:32 +04:00
parent 2314a454df
commit 6f4e031fb6
4 changed files with 39 additions and 14 deletions

View File

@@ -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)