diff --git a/communistquotes/main.py b/communistquotes/main.py index 18ab992..bfca0eb 100644 --- a/communistquotes/main.py +++ b/communistquotes/main.py @@ -39,6 +39,5 @@ with open('marxistquotes.csv') as csvfile: csvreader = csv.reader(csvfile, delimiter=',', quotechar='`', skipinitialspace=True) row = random.choice(list(csvreader)) - # TODO: post as markdown or html with link to source - text = '{}\n\n - {}'.format(row[0], row[1]) - toot = mastodon_api.status_post(text, visibility='private') + text = '
{}
- {}{}'.format(row[0], row[1], row[2], row[3]) + toot = mastodon_api.status_post(text, visibility='private', content_type='text/html')