-
Notifications
You must be signed in to change notification settings - Fork 3
/
Data.py
33 lines (28 loc) · 1.24 KB
/
Data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from random import randrange
def inputdata1(): #First test
test = "test worked 1"
dictionary1 = {"test1": test}
return dictionary1
def inputdata2(): #Second test to see if multiple datas woild would work
test1 = "t"
dictionary1 = {"test2": test1}
return dictionary1
def picran(): # /static/ + random number + .jpg so it would call a random jpg file because I named them all number.jpg and thet are in the static folder
picture = int(1)
picture2 = "/static/" + str(picture) + ".jpg"
if picture == 1:
repel1 = "https://repl.it/@jhunt11111/picture1website1?lite=true"
elif picture == 5:
repel1 = "https://repl.it/@jhunt11111/picture5website1?lite=true"
elif picture == 3:
repel1 = "https://repl.it/@jhunt11111/picture3website1?lite=true"
elif picture == 0:
repel1 = "https://repl.it/@jhunt11111/picture0website1?lite=true"
elif picture == 2:
repel1 = "https://repl.it/@jhunt11111/picture2website1?lite=true"
elif picture == 4:
repel1 = "https://repl.it/@jhunt11111/picture4website1?lite=true"
else:
repel1 = str(picture)
dictionary2 = {"picture": picture2, "repel1": repel1, "numberR": picture}
return dictionary2