uploaded guid in data model

This commit is contained in:
Jonathan Branan 2024-08-15 16:48:02 -05:00
parent 4ff3b85c1c
commit 9c189aaf7a
2 changed files with 6 additions and 3 deletions

View File

@ -14,8 +14,7 @@ def dataTemplate(transactionType,**kwargs):
"name": kwargs.get('file_name'),
"path": kwargs.get('file_path')
},
# upload/download:guid needed, figure out how to do this
"guid": f'{transactionType}:{kwargs.get("guid")}',
"guid": f'{transactionType.split("_")[1].rstrip("d").rstrip("e")}:{kwargs.get("guid")}',
"node_name": kwargs.get('node_name'),
"prd_ext_tenant_id": kwargs.get('prd_ext_tenant_id'),
"product_name": "GlobalScape EFT",

View File

@ -35,4 +35,8 @@ def identifyUtype(obj):
if obj in file_downloaded:
return "file_downloaded"
else:
return "other"
return "other"
transactionType = 'file_uploaded'
print(transactionType.split("_")[1].rstrip("d").rstrip("e"))