def setLastRefresh(exList):
 try:
  dbData = sickrage.srCore.cacheDB.db.get(u'scene_exceptions_refresh', exList, with_doc=True)[u'doc']
  dbData[u'last_refreshed'] = int(time.mktime(datetime.datetime.today().timetuple()))
  sickrage.srCore.cacheDB.db.update(dbData)
 except RecordNotFound:
  sickrage.srCore.cacheDB.db.insert({u'_t': u'scene_exceptions_refresh', u'last_refreshed': int(time.mktime(datetime.datetime.today().timetuple())), u'list': exList})

def setLastRefresh ( exList ) : try : dbData = sickrage . srCore . cacheDB . db . get ( u'scene_exceptions_refresh' , exList , with_doc = True ) [ u'doc' ] dbData [ u'last_refreshed' ] = int ( time . mktime ( datetime . datetime . today ( ) . timetuple ( ) ) ) sickrage . srCore . cacheDB . db . update ( dbData ) except RecordNotFound : sickrage . srCore . cacheDB . db . insert ( { u'_t' : u'scene_exceptions_refresh' , u'last_refreshed' : int ( time . mktime ( datetime . datetime . today ( ) . timetuple ( ) ) ) , u'list' : exList } )
update last cache update time for shows in list .