Hi,
What is the right way to do the following type of query with DAL,
avoiding the for loop?

            ids = db(db.task_run.task_scheduled ==
db.task_scheduled.id)\
                (db.task_scheduled.group_name == 'status')\
                (db.task_run.start_time
+status_expiration<now).select(db.task_run.id)
            for id in ids:
                db(db.task_run.id == id.id).delete()

Thanks,
G

Reply via email to