summaryrefslogtreecommitdiffstats
path: root/core/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/utils.py')
-rw-r--r--core/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/utils.py b/core/utils.py
index 2aba924..6f07df9 100644
--- a/core/utils.py
+++ b/core/utils.py
@@ -69,8 +69,8 @@ def alphabet_suffix(n):
if not alphabet:
alphabet = list(string.ascii_lowercase)
- if n < len(alphabet):
- suffix = alphabet[n]
+ if n < len(alphabet) and n > 0:
+ suffix = alphabet[n-1]
else:
suffix = "_X_" + random.choice(string.ascii_lowercase) + random.choice(string.ascii_lowercase)
return suffix