Compare commits
No commits in common. "0f7995f0c247ed53ba223ecce625df53f0d09ed5" and "fdfb9a3e5ca32e23564bc061d6606cf24c24b919" have entirely different histories.
0f7995f0c2
...
fdfb9a3e5c
|
@ -53,7 +53,7 @@ Perform initial database migration. This is for automatically setting up the
|
|||
database schema for the first time:
|
||||
|
||||
```sh
|
||||
docker exec -it backend-production bash
|
||||
docker exec -it backend-flask-production bash
|
||||
flask db upgrade
|
||||
exit
|
||||
```
|
||||
|
|
|
@ -10,7 +10,6 @@ from sqlalchemy_utc import UtcDateTime
|
|||
from discord_webhook import DiscordWebhook
|
||||
import app_db
|
||||
import spec
|
||||
import os
|
||||
|
||||
|
||||
class Event(app_db.BaseModel):
|
||||
|
@ -102,8 +101,6 @@ class Event(app_db.BaseModel):
|
|||
if ringers_needed > 0:
|
||||
ringers_needed_msg = f" **({ringers_needed} ringer(s) needed)**"
|
||||
|
||||
domain = os.environ.get("DOMAIN", "availabili.tf")
|
||||
|
||||
return "\n".join([
|
||||
f"# {self.name}",
|
||||
"",
|
||||
|
@ -114,7 +111,7 @@ class Event(app_db.BaseModel):
|
|||
f"Max bipartite matching size: {matchings}" + ringers_needed_msg,
|
||||
"",
|
||||
"[Confirm attendance here]" +
|
||||
f"(https://{domain}/team/id/{self.team.id}/events/{self.id})",
|
||||
f"(https://availabili.tf/team/id/{self.team.id}/events/{self.id})",
|
||||
])
|
||||
|
||||
def get_or_create_webhook(self):
|
||||
|
|
|
@ -35,7 +35,6 @@ services:
|
|||
- FLASK_CELERY_BROKER_URL=redis://redis:6379/0
|
||||
- FLASK_CELERY_RESULT_BACKEND=redis://redis:6379/0
|
||||
- DATABASE_URI=postgresql+psycopg://postgres:password@db:5432/availabilitf
|
||||
- DOMAIN=availabili.tf.sandvich.xyz
|
||||
depends_on:
|
||||
- redis
|
||||
- db
|
||||
|
|
Loading…
Reference in New Issue