feat(chalice): refactored records list
This commit is contained in:
parent
2063d55522
commit
de338247b6
1 changed files with 1 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ def save_record(project_id, data: schemas_ee.AssistRecordSavePayloadSchema, cont
|
||||||
def search_records(project_id, data: schemas_ee.AssistRecordSearchPayloadSchema, context: schemas_ee.CurrentContext):
|
def search_records(project_id, data: schemas_ee.AssistRecordSearchPayloadSchema, context: schemas_ee.CurrentContext):
|
||||||
conditions = ["projects.tenant_id=%(tenant_id)s",
|
conditions = ["projects.tenant_id=%(tenant_id)s",
|
||||||
"projects.deleted_at ISNULL",
|
"projects.deleted_at ISNULL",
|
||||||
|
"projects.project_id=%(project_id)s",
|
||||||
"assist_records.deleted_at ISNULL"]
|
"assist_records.deleted_at ISNULL"]
|
||||||
if data.startDate:
|
if data.startDate:
|
||||||
conditions.append("assist_records.created_at>=%(startDate)s")
|
conditions.append("assist_records.created_at>=%(startDate)s")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue