equal
deleted
inserted
replaced
221 # most recent |
221 # most recent |
222 log.debug("search @ %s", now) |
222 log.debug("search @ %s", now) |
223 try: |
223 try: |
224 return url_item[0] |
224 return url_item[0] |
225 except IndexError: |
225 except IndexError: |
226 raise DoesNotExist() |
226 raise cls.DoesNotExist() |
227 |
227 |
228 @classmethod |
228 @classmethod |
229 def get_url (cls, shorturl) : |
229 def get_url (cls, shorturl) : |
230 """ |
230 """ |
231 Return the current URL for a given shorturl, from cache or DB. |
231 Return the current URL for a given shorturl, from cache or DB. |