replaced i with throwaway variable (#113)

This commit is contained in:
ABDUL NIYAS P M 2018-12-09 17:54:16 +05:30 committed by Martin Mahner
parent 89a4e95d88
commit faf4030e91

View file

@ -22,7 +22,7 @@ def generate_secret_id(length):
)
secret_id = ''.join(
[R.choice(config.SLUG_CHOICES) for i in range(length or config.SLUG_LENGTH)]
[R.choice(config.SLUG_CHOICES) for _ in range(length or config.SLUG_LENGTH)]
)
# Check if this slug already exists, if not, return this new slug