summaryrefslogtreecommitdiff
path: root/app/builder
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-05-17 11:02:31 -0400
committerluxagraf <sng@luxagraf.net>2016-05-17 11:02:31 -0400
commitee3db95b0deca7d7767bb62a073a80c3a3681eeb (patch)
treecb8257502540d28295e16b87cf621163f8ab58f1 /app/builder
parent5a4f7455ffb3c02d6ddf4fd67cba3f73d254f20b (diff)
fixed a bug in amp builder and added a size hint to image upload on
post.
Diffstat (limited to 'app/builder')
-rw-r--r--app/builder/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index 1507ece..dc85451 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -130,7 +130,7 @@ class BuildNew():
'''
for entry in self.get_model_queryset():
# write AMP
- response = self.client.get('%s.amp' % url)
+ response = self.client.get('%s.amp' % entry.get_absolute_url())
self.write_file(path, response.content, ext='amp', filename=slug)