Fall back to ref on manual submission title

This commit is contained in:
Tanner Collin 2020-06-25 23:37:11 +00:00
parent 6430fe5e9f
commit 8799b10525

View File

@ -33,7 +33,7 @@ def story(ref):
s['author_link'] = 'https://news.t0.vc' s['author_link'] = 'https://news.t0.vc'
s['score'] = 0 s['score'] = 0
s['date'] = int(time.time()) s['date'] = int(time.time())
s['title'] = str(soup.title.string) s['title'] = str(soup.title.string) if soup.title else ref
s['link'] = ref s['link'] = ref
s['url'] = ref s['url'] = ref
s['comments'] = [] s['comments'] = []