From 1c2090f3005d3c6b33eca7e8449f050bd4a25263 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 12 Jan 2018 12:21:09 +0100 Subject: [PATCH] Cleanups, clarification --- CHANGELOG.md | 2 +- digimarks.py | 11 ----------- templates/bookmarks.html | 9 --------- 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d933ad2..b8125db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - 'lightblue' theme - 'black amoled' theme -- Python 3 compatibility +- Python 3 compatibility (tested with Python 3.5 and 3.6) - Accept 'HTTP 202' responses as 'OK' ### Changed diff --git a/digimarks.py b/digimarks.py index bb632e2..4794c46 100644 --- a/digimarks.py +++ b/digimarks.py @@ -267,17 +267,6 @@ class Bookmark(db.Model): class Meta: ordering = (('created_date', 'desc'),) - #def fetch_image(self): - # url_hash = hashlib.md5(self.url).hexdigest() - # filename = 'bookmark-%s.png' % url_hash - - # outfile = os.path.join(MEDIA_ROOT, filename) - # params = [PHANTOM, SCRIPT, self.url, outfile] - - # exitcode = subprocess.call(params) - # if exitcode == 0: - # self.image = os.path.join(MEDIA_URL, filename) - def set_hash(self): """ Generate hash """ self.url_hash = hashlib.md5(self.url.encode('utf-8')).hexdigest() diff --git a/templates/bookmarks.html b/templates/bookmarks.html index ac032bd..2e9c7b9 100644 --- a/templates/bookmarks.html +++ b/templates/bookmarks.html @@ -74,15 +74,6 @@
{% for bookmark in bookmarks %}
- {# -
- - - -

{{ bookmark.url|urlize(25) }}

-

{{ bookmark.created_date.strftime("%m/%d/%Y %H:%M") }}

-
- #}
{% if bookmark.favicon %}