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:
parent
ef3e5a1e20
commit
e0624d6a11
2 changed files with 704 additions and 704 deletions
|
@ -39,5 +39,5 @@ with open('marxistquotes.csv') as csvfile:
|
|||
csvreader = csv.reader(csvfile, delimiter=',', quotechar='`', skipinitialspace=True)
|
||||
row = random.choice(list(csvreader))
|
||||
|
||||
text = '<p>{}</p> - {}<a href={}>{}</a>'.format(row[0], row[1], row[2], row[3])
|
||||
text = '<p>{}</p> - {}, <a href={}>{}</a>'.format(row[0], row[1], row[2], row[3])
|
||||
toot = mastodon_api.status_post(text, visibility='public', content_type='text/html')
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue