[FIX] website: fix sitemap

typo during python3 convertion
This commit is contained in:
rde
2017-08-31 15:47:10 +02:00
parent fe77df3ba4
commit bbc38ca429
+1 -1
View File
@@ -162,7 +162,7 @@ class Website(Home):
create_date = fields.Datetime.from_string(sitemap.create_date)
delta = datetime.datetime.now() - create_date
if delta < SITEMAP_CACHE_TIME:
content = base64.b64decode(sitemap)
content = base64.b64decode(sitemap.datas)
if not content:
# Remove all sitemaps in ir.attachments as we're going to regenerated them