diff --git a/README.md b/README.md
index abffa755..bc22b349 100644
--- a/README.md
+++ b/README.md
@@ -191,7 +191,7 @@ variable `AMIVAPI_CONFIG` to specify the config path in the container.)
If you have installed AMIV API locally, you can use the CLI to start it.
First, change `MONGO_HOST = 'mongodb'` in `config.py` to `'MONGO_HOST = 'localhost'`.
-Then, in CLI:
+Then, in CLI (with the environment active):
```sh
amivapi run dev # Start development server
@@ -210,7 +210,7 @@ amivapi run --help
If you have docker installed you can simply run the tests in a Docker instance:
```sh
-./run_tests.sh
+./run_tests.sh # potentially try with sudo
```
By default, this will start a container with mongodb, and run
diff --git a/amivapi/events/email_links.py b/amivapi/events/email_links.py
index 78b51132..98da250d 100644
--- a/amivapi/events/email_links.py
+++ b/amivapi/events/email_links.py
@@ -11,7 +11,8 @@
from bson import ObjectId
from eve.methods.delete import deleteitem_internal
from eve.methods.patch import patch_internal
-from flask import Blueprint, current_app, redirect, request, make_response, render_template, g
+from flask import Blueprint, current_app, redirect, make_response,\
+ render_template
from itsdangerous import BadSignature, URLSafeSerializer
from amivapi.events.queue import update_waiting_list
@@ -78,7 +79,7 @@ def on_delete_signup(token):
query = {'_id': signup_id}
data_signup = current_app.data.driver.db['eventsignups'].find_one(query)
if data_signup is None:
- error_msg = "This event might not exist anymore, or the link is broken, or we made a mistake."
+ error_msg = "This event might not exist anymore or the link is broken."
user = data_signup['user']
if user is None:
user = data_signup['email']
@@ -95,7 +96,8 @@ def on_delete_signup(token):
if data_event["time_start"] is None:
event_date = "a yet undefined day."
else:
- event_date = datetime.strftime(data_event["time_start"], '%Y-%m-%d %H:%M')
+ event_date = datetime.strftime(data_event["time_start"],
+ '%Y-%m-%d %H:%M')
# Serve the unregister_event page
response = make_response(render_template("unregister_event.html",
user=user,
@@ -107,7 +109,7 @@ def on_delete_signup(token):
return response
-@email_blueprint.route('/delete_confirmed/
Is that ok?
{% else %}
You clicked on a opt-out link of the AMIV at ETHZ student organization. We cannot process your request,
- because we either do {not} know the event you wish to unregister from, or your user name, or both.
+ because we either do not know the event you wish to unregister from, or your user name, or both.
{% endif %}