Add comma and space to text creation

Preparing for the removal of comma and space from the author field of each quote record
This commit is contained in:
Jessica L. Hacker 2019-09-17 13:58:41 -07:00 committed by radical coder
parent ef3e5a1e20
commit e0624d6a11
2 changed files with 704 additions and 704 deletions

View file

@ -39,5 +39,5 @@ with open('marxistquotes.csv') as csvfile:
csvreader = csv.reader(csvfile, delimiter=',', quotechar='`', skipinitialspace=True) csvreader = csv.reader(csvfile, delimiter=',', quotechar='`', skipinitialspace=True)
row = random.choice(list(csvreader)) row = random.choice(list(csvreader))
text = '<p>{}</p>&nbsp;&nbsp;&nbsp;&nbsp;- {}<a href={}>{}</a>'.format(row[0], row[1], row[2], row[3]) text = '<p>{}</p>&nbsp;&nbsp;&nbsp;&nbsp;- {}, <a href={}>{}</a>'.format(row[0], row[1], row[2], row[3])
toot = mastodon_api.status_post(text, visibility='public', content_type='text/html') toot = mastodon_api.status_post(text, visibility='public', content_type='text/html')

File diff suppressed because it is too large Load diff