Skip to content

Commit

Permalink
cleanup: sitemapindex header was written twice
Browse files Browse the repository at this point in the history
  • Loading branch information
nickumia-reisys committed Jul 26, 2023
1 parent 4ac22e8 commit 5f00bf9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ckanext/geodatagov/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@ def write_table_of_contents(self, number_of_sitemaps):
current_time = datetime.datetime.now().strftime("%Y-%m-%d")

log.info("Creating sitemap index...")
# write sitemap index
self.write_xml('<?xml version="1.0" encoding="UTF-8"?>')
self.write_xml(
'<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'
)

for file_num in range(number_of_sitemaps):
# add sitemaps to sitemap index file
Expand Down

0 comments on commit 5f00bf9

Please sign in to comment.