'Trims history table to 1 month of history from today'

@staticmethod
def trimHistory():

    date = str((datetime.today() - timedelta(days=30)).strftime(History.date_format))
    for dbData in [x[u'doc'] for x in sickrage.srCore.failedDB.db.all(u'history', with_doc=True) if (x[u'doc'][u'date'] < date)]:
        sickrage.srCore.failedDB.db.delete(dbData)
