-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"uploading-evidence-to-cloud" #271
base: mi-2.0-develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed NOv 26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
second review nov 27
if value and link_type: | ||
try: | ||
logo_split = str(value).split('/')[5] # Extract file ID from Google Drive link | ||
file_url = f'https://drive.google.com/uc?export=download&id={logo_split}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MallanagoudaB are we expecting google cloud link for every situation? what if user provide any other download link?
dest_file = os.path.join(Logofilepath, f'{key.replace(" ", "_")}.{link_type}') # Use dynamic extension | ||
|
||
# Download the file using gdown | ||
print(f"Downloading {key}: {file_url}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MallanagoudaB if out of 4 evidence one is failed to download what will happen? process will continue right?
Description
These recommendations are intended to promote code quality and team communication during software development. They cover a variety of topics, including ensuring that pull requests are submitted to the correct branch, documenting new methods, preserving consistency across many services, and avoiding typical blunders like accessing APIs or DB queries within loops. Sensitive data should not be uploaded, and changes to environment variables or database models should be executed consistently. Teams may work more effectively and develop higher-quality software by adhering to these standards.
Type of change
Please choose appropriate options.
Checklist