initial commit
This commit is contained in:
11
utils/path_utils.py
Normal file
11
utils/path_utils.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from apps.project.models import Project
|
||||
|
||||
def project_path(id: int):
|
||||
"""
|
||||
:param id:传入project_id获取其ident作为路径
|
||||
:return:
|
||||
"""
|
||||
project = Project.objects.filter(id=id).first()
|
||||
if not project:
|
||||
return
|
||||
return project.ident
|
||||
Reference in New Issue
Block a user