From 0f2fd04754d84ed77e5819fcfdc2571a9395b928 Mon Sep 17 00:00:00 2001 From: Joel Crawford-Smith Date: Fri, 23 Apr 2021 13:37:24 -0400 Subject: [PATCH] removing image unique identifier attemp --- openassessit/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openassessit/utils.py b/openassessit/utils.py index 7deafd4..3380229 100644 --- a/openassessit/utils.py +++ b/openassessit/utils.py @@ -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):