small markdown fixes

This commit is contained in:
b3yond 2018-05-25 16:15:44 +02:00
parent 2a9c5c657f
commit 628fcb4f95
5 changed files with 5 additions and 6 deletions

View file

@ -91,7 +91,7 @@ virtualenv -p python3 .
Install the dependencies:
```shell
pip install tweepy pytoml Mastodon.py bottle pyjwt pylibscrypt Markdown
pip install tweepy pytoml Mastodon.py bottle pyjwt pylibscrypt markdown2
```
Configure the bot:

2
db.py
View file

@ -168,7 +168,7 @@ u\d\d?
self.execute("""INSERT INTO triggerpatterns (user_id, patterns)
VALUES(?, ?); """, (uid, default_triggerpatterns))
self.execute("INSERT INTO badwords (user_id, words) VALUES(?, ?);",
(uid, ""))
(uid, "bastard"))
else:
uid = json['uid']
self.execute("INSERT INTO email (user_id, email) VALUES(?, ?);",

View file

@ -1,7 +1,7 @@
% rebase('template/wrapper.tpl')
<%
import markdown as md
import markdown2 as md
html = md.markdown(markdown)
%>

View file

@ -70,8 +70,8 @@
<div style="float: left; padding: 1.5em;">
<h2>Edit your city page</h2>
<p>
With your bot, we generated you a page, which you can use for promotion: <a href="city/$city"
target="_blank">Ticketfrei $city</a> You can change what your users will read there, and adjust it to your
With your bot, we generated you a page, which you can use for promotion: <a href="/city/{{city}}"
target="_blank">Ticketfrei {{city}}</a> You can change what your users will read there, and adjust it to your
needs. <b>You should definitely adjust the Social Media profile links.</b> This is just the default text we
suggest:
</p>

View file

@ -67,7 +67,6 @@ class User(object):
# no pattern matched
return False
default_badwords = """
bastard
bitch
whore
hitler