Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
turbou committed Nov 28, 2023
1 parent 9a454a1 commit 034be5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion work/java_rlsnote.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from datetime import datetime
import locale
import html
import hashlib

def main():
locale.setlocale(locale.LC_TIME, "C")
Expand Down Expand Up @@ -43,8 +44,10 @@ def main():
else:
desc_buffer.append('%s' % elem2.text)
#print(elem2.text)
id_hash = hashlib.md5(id_str.encode()).hexdigest()
url = 'https://docs.contrastsecurity.jp/ja/java-agent-release-notes-and-archive.html#%s' % id_str
feed.add_item(title=title, link=url, description=html.escape(''.join(['<p>{0}</p>'.format(s) for s in desc_buffer])), pubdate=pubdate)
guid = 'https://docs.contrastsecurity.jp/ja/java-agent-release-notes-and-archive.html#%s' % id_hash
feed.add_item(title=title, link=url, description=''.join(['<p>{0}</p>'.format(s) for s in desc_buffer]), pubdate=pubdate, unique_id=guid)
except IndexError:
continue

Expand Down

0 comments on commit 034be5d

Please sign in to comment.