Skip to content

Commit

Permalink
removing image unique identifier attemp
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhsmith committed Apr 23, 2021
1 parent c539246 commit 0f2fd04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openassessit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def generate_img_filename(url, identifier):
""" Generate useful filename with a max of 260 chars """
url = re.sub(r"https?://(www\.)?", '', url)
identifier = re.sub(r'\W+', '-', identifier)
unique = ''.join(random.choice(string.digits) for i in range(6))
return re.sub(r'\W+', '-', '%s%s' % (url[0:30], identifier[-200:-1])) + unique + '.png'
return re.sub(r'\W+', '-', '%s%s' % (url[0:30], identifier[-200:-1])) + '.png'


def scroll_down(driver, value):
Expand Down

0 comments on commit 0f2fd04

Please sign in to comment.