mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
fix bug
This commit is contained in:
parent
c5857592a0
commit
1c80fc8ca6
@ -274,9 +274,6 @@ class ImgHandler(tornado.web.RequestHandler):
|
|||||||
replaceset.append(s)
|
replaceset.append(s)
|
||||||
client_set = replaceset[r.hasharray[1] % len(replaceset) ]
|
client_set = replaceset[r.hasharray[1] % len(replaceset) ]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if client_set == 'set1':
|
if client_set == 'set1':
|
||||||
client_set = colors[r.hasharray[0] % len(colors) ]
|
client_set = colors[r.hasharray[0] % len(colors) ]
|
||||||
|
|
||||||
@ -322,7 +319,7 @@ class ImgHandler(tornado.web.RequestHandler):
|
|||||||
|
|
||||||
if client_bgset is not "":
|
if client_bgset is not "":
|
||||||
bglist = []
|
bglist = []
|
||||||
for ls in os.listdir(client_bgset).sort():
|
for ls in os.listdir(client_bgset):
|
||||||
if not ls.startswith("."):
|
if not ls.startswith("."):
|
||||||
bglist.append(client_bgset + "/" + ls)
|
bglist.append(client_bgset + "/" + ls)
|
||||||
bg = Image.open(bglist[r.hasharray[3] % len(bglist)])
|
bg = Image.open(bglist[r.hasharray[3] % len(bglist)])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user