Exemple #1
0
 def get_with_hashid(cls, hashid):
     id = HASHIDS_CODEC.decode(hashid)[0]
     return cls.query.get(id)
Exemple #2
0
 def get_with_hashid(cls, hashid):
     try:
         id = HASHIDS_CODEC.decode(hashid)[0]
         return cls.query.get(id)
     except IndexError:
         return None
Exemple #3
0
 def get_form_by_random_like_string(cls, random_like_string):
     id = HASHIDS_CODEC.decode(random_like_string)[0]
     return cls.query.get(id)
Exemple #4
0
 def get_with_hashid(cls, hashid):
     try:
         id = HASHIDS_CODEC.decode(hashid)[0]
         return cls.query.get(id)
     except IndexError:
         return None
Exemple #5
0
 def get_with_hashid(cls, hashid):
     id = HASHIDS_CODEC.decode(hashid)[0]
     return cls.query.get(id)