Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Commit 1f23905

Browse files
authored
Update mainwindow.py
1 parent 0091ae1 commit 1f23905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mainwindow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ async def get_cache(self):
7575
cat_data = dict()
7676

7777
# randomly make jumpscares happen, but not on the first image
78-
if randint(1, cachesize) == 5 and i:
78+
if randint(1, 10) == 5 and i:
7979
# get a random number for an image
80-
image_number = randint(1, cachesize)
80+
image_number = randint(1, 10)
8181
# open and resize the image using Pillow
8282
im = Image.open(os.path.join(self.dir, os.path.join("res",
8383
os.path.join("images", f"{image_number}.jpg"))))

0 commit comments

Comments
 (0)