mirror of
https://github.com/kennethreitz-archive/fallib-service.git
synced 2026-06-05 07:16:13 +00:00
content html consistiency
This commit is contained in:
@@ -159,6 +159,10 @@ class URL(DynamoDBModel):
|
||||
def text(self):
|
||||
return Content.get(self.content).text
|
||||
|
||||
@property
|
||||
def html(self):
|
||||
return Content.get(self.content).html
|
||||
|
||||
@classmethod
|
||||
def get_or_store(cls, url):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user