View Single Post
Old 12-19-2022, 10:10 AM   #3
unkn0wn
Guru
unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.
 
Posts: 630
Karma: 85520
Join Date: May 2021
Device: kindle
i made a small mistake, it isn't effecting the recipe but..

Code:
def absurl(url):
    if url.startswith('/'):
        url = 'https://www.hbr.org/' + url
    return url
hbr.org isnt supposed to be ending in '/'..
its creating double slashes in absurl links.

its supposed to be url = 'https://www.hbr.org' + url
unkn0wn is offline   Reply With Quote