From 4b6e4410bbe426592daafdabbba6e8ff56efe58b Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 20 Feb 2017 11:26:45 +0000 Subject: [PATCH] bug fix --- sourcing/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcing/model.py b/sourcing/model.py index 43f0862..341d8f7 100644 --- a/sourcing/model.py +++ b/sourcing/model.py @@ -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()