applying fix for magic
Browse files
app.py
CHANGED
@@ -167,6 +167,7 @@ async def on_reaction_add(reaction, user):
|
|
167 |
indexpartialpath = image_name[:-4] # should be 1tmpgtv4qjix
|
168 |
# extract index as an integer (dfif2 needs integer)
|
169 |
index = int(indexpartialpath[0]) # should be 1
|
|
|
170 |
# extract partialpath
|
171 |
partialpath = indexpartialpath[1:] # should be tmpgtv4qjix
|
172 |
# add /tmp/ to partialpath, save as new variable
|
|
|
167 |
indexpartialpath = image_name[:-4] # should be 1tmpgtv4qjix
|
168 |
# extract index as an integer (dfif2 needs integer)
|
169 |
index = int(indexpartialpath[0]) # should be 1
|
170 |
+
index = index - 1 # since we were taking index from "images 1 - 4"
|
171 |
# extract partialpath
|
172 |
partialpath = indexpartialpath[1:] # should be tmpgtv4qjix
|
173 |
# add /tmp/ to partialpath, save as new variable
|