mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 22:05:09 +01:00
Cleanups, clarification
This commit is contained in:
@@ -24,7 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
### Added
|
### Added
|
||||||
- 'lightblue' theme
|
- 'lightblue' theme
|
||||||
- 'black amoled' theme
|
- 'black amoled' theme
|
||||||
- Python 3 compatibility
|
- Python 3 compatibility (tested with Python 3.5 and 3.6)
|
||||||
- Accept 'HTTP 202' responses as 'OK'
|
- Accept 'HTTP 202' responses as 'OK'
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
11
digimarks.py
11
digimarks.py
@@ -267,17 +267,6 @@ class Bookmark(db.Model):
|
|||||||
class Meta:
|
class Meta:
|
||||||
ordering = (('created_date', 'desc'),)
|
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):
|
def set_hash(self):
|
||||||
""" Generate hash """
|
""" Generate hash """
|
||||||
self.url_hash = hashlib.md5(self.url.encode('utf-8')).hexdigest()
|
self.url_hash = hashlib.md5(self.url.encode('utf-8')).hexdigest()
|
||||||
|
|||||||
@@ -74,15 +74,6 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
{% for bookmark in bookmarks %}
|
{% for bookmark in bookmarks %}
|
||||||
<div class="col s12 m6 l4">
|
<div class="col s12 m6 l4">
|
||||||
{#
|
|
||||||
<div class="thumbnail">
|
|
||||||
<a href="{{ bookmark.url }}" title="{{ bookmark.url }}">
|
|
||||||
<img style="width:450px;" src="{{ bookmark.image }}" />
|
|
||||||
</a>
|
|
||||||
<p><a href="{{ bookmark.url }}">{{ bookmark.url|urlize(25) }}</a></p>
|
|
||||||
<p>{{ bookmark.created_date.strftime("%m/%d/%Y %H:%M") }}</p>
|
|
||||||
</div>
|
|
||||||
#}
|
|
||||||
<div class="card horizontal tiny {{ theme.CARD_BACKGROUND }}">
|
<div class="card horizontal tiny {{ theme.CARD_BACKGROUND }}">
|
||||||
<div class="card-image">
|
<div class="card-image">
|
||||||
{% if bookmark.favicon %}
|
{% if bookmark.favicon %}
|
||||||
|
|||||||
Reference in New Issue
Block a user