mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
sort
This commit is contained in:
parent
bd433d4774
commit
8a4899a788
@ -297,7 +297,7 @@ class ImgHandler(tornado.web.RequestHandler):
|
||||
|
||||
if client_bgset is not "":
|
||||
bglist = []
|
||||
for ls in os.listdir(client_bgset):
|
||||
for ls in os.listdir(client_bgset).sort():
|
||||
if not ls.startswith("."):
|
||||
bglist.append(client_bgset + "/" + ls)
|
||||
bg = Image.open(bglist[r.hasharray[3] % len(bglist)])
|
||||
|
Loading…
x
Reference in New Issue
Block a user