Merge pull request #2305 from jakzo/fix-id-generation

Fix ID generation
This commit is contained in:
Steve Pulec 2019-07-15 20:04:22 -05:00 committed by GitHub
commit 3a92d0f016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,10 @@
from __future__ import unicode_literals
import six
import random
import string
def create_id():
size = 10
chars = list(range(10)) + ['A-Z']
chars = list(range(10)) + list(string.ascii_lowercase)
return ''.join(six.text_type(random.choice(chars)) for x in range(size))