commit
a4996266a1
|
@ -17,6 +17,9 @@ Steps to reproduce the behavior:
|
||||||
3. Scroll down to '....'
|
3. Scroll down to '....'
|
||||||
4. See error
|
4. See error
|
||||||
|
|
||||||
|
**Ticketfrei Version**
|
||||||
|
See the commit on which Ticketfrei is running at example.org/version.
|
||||||
|
|
||||||
**Screenshots**
|
**Screenshots**
|
||||||
If applicable, add screenshots to help explain your problem.
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ virtualenv -p python3 .
|
||||||
Install the dependencies:
|
Install the dependencies:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pip install tweepy pytoml Mastodon.py bottle pyjwt pylibscrypt Markdown twx
|
pip install tweepy pytoml Mastodon.py bottle pyjwt pylibscrypt Markdown twx gitpython
|
||||||
```
|
```
|
||||||
|
|
||||||
Configure the bot:
|
Configure the bot:
|
||||||
|
|
|
@ -67,6 +67,13 @@ def confirm(city, token):
|
||||||
return dict(error='Account creation failed. Please try to register again.')
|
return dict(error='Account creation failed. Please try to register again.')
|
||||||
|
|
||||||
|
|
||||||
|
@get('/version')
|
||||||
|
def version():
|
||||||
|
import git
|
||||||
|
repo = git.Repo(search_parent_directories=True)
|
||||||
|
return repo.head.object.hexsha
|
||||||
|
|
||||||
|
|
||||||
@post('/login')
|
@post('/login')
|
||||||
@view('template/login.tpl')
|
@view('template/login.tpl')
|
||||||
def login_post():
|
def login_post():
|
||||||
|
|
Loading…
Reference in New Issue