mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-12 01:45:04 +00:00
update sql
This commit is contained in:
parent
61a521e5ad
commit
55c046e2c9
@ -604,7 +604,10 @@ class DirDetailView(APIView):
|
||||
FROM `{METADATA_TABLE.name}`
|
||||
WHERE
|
||||
(`{METADATA_TABLE.columns.is_dir.name}` = False) AND
|
||||
(`{METADATA_TABLE.columns.parent_dir.name}` ILIKE '%{path[:-1]}%')
|
||||
(
|
||||
`{METADATA_TABLE.columns.parent_dir.name}` ILIKE '{path}%' OR
|
||||
`{METADATA_TABLE.columns.parent_dir.name}` = '{path[:-1]}'
|
||||
)
|
||||
"""
|
||||
results = metadata_server_api.query_rows(sql, [])
|
||||
result_row = results.get('results')[0]
|
||||
|
Loading…
Reference in New Issue
Block a user