[FIX] website: fix sitemap
typo during python3 convertion
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user