Merge branch 'master' of ssh://4angle.com/home/edward/git/sourcing
This commit is contained in:
commit
ca92fc8046
|
@ -175,7 +175,7 @@ class Item(TimeStampedModel):
|
|||
m = re_server_url.match(url)
|
||||
if not m:
|
||||
return
|
||||
username, hashid = m.groups()
|
||||
username, hashid = m.groups()
|
||||
item_id = doc_hashids.decode(hashid)[0]
|
||||
q = cls.query.filter(User.username == username, cls.id == item_id)
|
||||
return q.one_or_none()
|
||||
|
|
Loading…
Reference in a new issue