mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added note to doctring
This commit is contained in:
parent
96048ce6d7
commit
4813365aed
1 changed files with 4 additions and 0 deletions
|
|
@ -1411,6 +1411,10 @@ def source_hash(filepath, *args):
|
|||
def get_latest_version(asset_name, subset_name, dbcon=None, project_name=None):
|
||||
"""Retrieve latest version from `asset_name`, and `subset_name`.
|
||||
|
||||
Do not use if you want to query more than 5 latest versions as this method
|
||||
query 3 times to mongo for each call. For those cases is better to use
|
||||
more efficient way, e.g. with help of aggregations.
|
||||
|
||||
Args:
|
||||
asset_name (str): Name of asset.
|
||||
subset_name (str): Name of subset.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue