mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
Fix set5
This commit is contained in:
parent
b0b49207bd
commit
4eb33e4d02
@ -73,6 +73,12 @@ class Robohash(object):
|
||||
currentend = (1 +i) * blocksize
|
||||
self.hasharray.append(int(self.hexdigest[currentstart:currentend],16))
|
||||
|
||||
# Workaround for adding more sets in 2019.
|
||||
# We run out of blocks, because we use some for each set, whether it's called or not.
|
||||
# I can't easily change this without invalidating every hash so far :/
|
||||
# This shouldn't reduce the security since it should only draw from one set of these in practice.
|
||||
self.hasharray = self.hasharray + self.hasharray
|
||||
|
||||
def _listdirs(self,path):
|
||||
return [d for d in natsort.natsorted(os.listdir(path)) if os.path.isdir(os.path.join(path, d))]
|
||||
|
||||
|
@ -217,8 +217,8 @@ class MainHandler(tornado.web.RequestHandler):
|
||||
("Longcat is.. Descriptively named."),
|
||||
("It is fun to have fun, but you have to know meow."),
|
||||
("Who knows the term man-cub but not baby?")]
|
||||
|
||||
avatarquotes = [("Believe me, I'm a doctor"),
|
||||
|
||||
avatarquotes = [("Believe me, I'm a doctor"),
|
||||
("Pretty and you know it."),
|
||||
("Nothing works unless I do it"),
|
||||
("I'm a voice not an echo"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user