summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@archlinux.org>2020-05-22 23:20:54 +0200
committerJelle van der Waa <jelle@archlinux.org>2020-05-22 23:20:54 +0200
commit1c831f6b5afc6b29d869a4889519f368fc802a17 (patch)
tree85161a55bbbd75272d5cdd444d9a9e3cfd85e58d
parentea6a9d9357ff3c851ab80947a7af66c3c0c0d7c9 (diff)
downloadarchweb-1c831f6b5afc6b29d869a4889519f368fc802a17.tar.gz
archweb-1c831f6b5afc6b29d869a4889519f368fc802a17.zip
Fix Python formatting in releng.models
-rw-r--r--releng/models.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/releng/models.py b/releng/models.py
index a9019792..60a70edc 100644
--- a/releng/models.py
+++ b/releng/models.py
@@ -23,8 +23,7 @@ class Release(models.Model):
last_modified = models.DateTimeField(editable=False)
available = models.BooleanField(default=True)
info = models.TextField('Public information', blank=True)
- torrent_data = models.TextField(blank=True,
- help_text="base64-encoded torrent file")
+ torrent_data = models.TextField(blank=True, help_text="base64-encoded torrent file")
class Meta:
get_latest_by = 'release_date'
@@ -79,7 +78,7 @@ class Release(models.Model):
'info_hash': None,
}
if 'creation date' in data:
- created= datetime.utcfromtimestamp(data['creation date'])
+ created = datetime.utcfromtimestamp(data['creation date'])
metadata['creation_date'] = created.replace(tzinfo=utc)
if info:
metadata['info_hash'] = hashlib.sha1(bencode(info)).hexdigest()