view backend/sqlalchemy/util.py @ 206:f74fe7cb5091

when updating feeds, only ever create new Feed objects for entries that are younger than the current expire date. This ensures that we do not see old, read, expired entries again
author dirk
date Sat, 02 Jun 2012 04:30:04 +0200
parents 04a730f9d07d
children bb3c851b18b1
line wrap: on
line source


import sys

def databaseLoggingEnabled():
    loggingEnabled = False
    for arg in sys.argv:
        if arg == "--databaseLogging":
            loggingEnabled = True
    return loggingEnabled