8a83f49303af120ef4ff122885f3a5b5b92c3aeb,app/grandchallenge/core/management/commands/importexcelprojects.py,Command,add_project_link_to_db,#Command#Any#,57
Before Change
if not challenge.logo:
try:
logo = f"https://grand-challenges.grand-challenge.org/serve/public_html/images/all_challenges/{challenge.short_name.lower()}.png/"
img = urlopen(logo).read()
challenge.logo = ContentFile(img,
f"{challenge.short_name.lower()}.png")
except HTTPError:
After Change
settings.EXTERNAL_PROJECTS_IMAGE_FOLDER,
f"{challenge.short_name.lower()}.png")
with open(logo, "rb") as f:
img = f.read()
challenge.logo = ContentFile(img,
f"{challenge.short_name.lower()}.png")
except Exception:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: comic/grand-challenge.org
Commit Name: 8a83f49303af120ef4ff122885f3a5b5b92c3aeb
Time: 2018-08-01
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/core/management/commands/importexcelprojects.py
Class Name: Command
Method Name: add_project_link_to_db
Project Name: theislab/scanpy
Commit Name: ab9247bdf8b7a3decc34a15b26fec813ea8fba0d
Time: 2020-07-31
Author: ivirshup@gmail.com
File Name: scanpy/readwrite.py
Class Name:
Method Name: _download
Project Name: miso-belica/sumy
Commit Name: c22c076a69612dd29e490991185149456e7b5ca8
Time: 2015-08-29
Author: miso.belica@gmail.com
File Name: sumy/__main__.py
Class Name:
Method Name: handle_arguments