forked from ticketfrei/ticketfrei
small markdown fixes
This commit is contained in:
parent
2a9c5c657f
commit
628fcb4f95
|
@ -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
2
db.py
|
@ -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(?, ?);",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
% rebase('template/wrapper.tpl')
|
||||
|
||||
<%
|
||||
import markdown as md
|
||||
import markdown2 as md
|
||||
|
||||
html = md.markdown(markdown)
|
||||
%>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue