Update old import

This commit is contained in:
Quentin Machu 2015-10-06 18:42:41 -04:00
parent 57675487cb
commit 27fd4a5555

View file

@ -3,7 +3,7 @@ import logging
from datetime import timedelta, datetime from datetime import timedelta, datetime
from app import app from app import app
from data.model import LogEntry from data.database import LogEntry
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -42,4 +42,4 @@ if __name__ == '__main__':
now = datetime.now() now = datetime.now()
one_month_ago = now - timedelta(days=30) one_month_ago = now - timedelta(days=30)
delete_old_logentries(one_month_ago) delete_old_logentries(one_month_ago)