mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Revert "replaced i with throwaway variable (#113)"
This would break the ugettext shortcut.
This reverts commit faf4030e91
.
This commit is contained in:
parent
50319b269e
commit
3bfb153b74
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ def generate_secret_id(length):
|
||||||
)
|
)
|
||||||
|
|
||||||
secret_id = ''.join(
|
secret_id = ''.join(
|
||||||
[R.choice(config.SLUG_CHOICES) for _ in range(length or config.SLUG_LENGTH)]
|
[R.choice(config.SLUG_CHOICES) for i in range(length or config.SLUG_LENGTH)]
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check if this slug already exists, if not, return this new slug
|
# Check if this slug already exists, if not, return this new slug
|
||||||
|
|
Loading…
Reference in a new issue