bug fix
This commit is contained in:
		
							parent
							
								
									9cfe7cd06b
								
							
						
					
					
						commit
						4b6e4410bb
					
				| 
						 | 
					@ -175,7 +175,7 @@ class Item(TimeStampedModel):
 | 
				
			||||||
            m = re_server_url.match(url)
 | 
					            m = re_server_url.match(url)
 | 
				
			||||||
            if not m:
 | 
					            if not m:
 | 
				
			||||||
                return
 | 
					                return
 | 
				
			||||||
        username, hashid = m.groups()
 | 
					            username, hashid = m.groups()
 | 
				
			||||||
        item_id = doc_hashids.decode(hashid)[0]
 | 
					        item_id = doc_hashids.decode(hashid)[0]
 | 
				
			||||||
        q = cls.query.filter(User.username == username, cls.id == item_id)
 | 
					        q = cls.query.filter(User.username == username, cls.id == item_id)
 | 
				
			||||||
        return q.one_or_none()
 | 
					        return q.one_or_none()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue