def get(self): allkeys = UploadRequestKeys.all() for key in allkeys: if not key.expire_date > datatime.now(): key.delete()