Skip to content

Commit

Permalink
adding last edit and created on to APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
marsan02 committed Feb 6, 2024
1 parent f511fd3 commit 85c806f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified services/__pycache__/generic_service.cpython-311.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion services/generic_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_mysql(self, filters,object_id,buyer_id,conn):
if buyer_id and self.database =='buyers':
query_filters = query_filters + f' AND id={buyer_id}'

query = f'SELECT {columns} FROM {self.database} WHERE 1=1 AND deleted=0 {query_filters}'
query = f'SELECT {columns},last_edit,created_at FROM {self.database} WHERE 1=1 AND deleted=0 {query_filters}'
print(query)
result_list = conn.ExecQuery(query)
if result_list:
Expand Down

0 comments on commit 85c806f

Please sign in to comment.