Compare commits
2 Commits
f466c33a0f
...
661df8d370
Author | SHA1 | Date |
---|---|---|
Luca | 661df8d370 | |
Luca | b2b5dbc091 |
|
@ -55,7 +55,7 @@ def send_message(msgid, is_retry=False):
|
||||||
if msg.sent_at:
|
if msg.sent_at:
|
||||||
return
|
return
|
||||||
|
|
||||||
send(msg.as_outbound())
|
list(send(msg.as_outbound()))
|
||||||
|
|
||||||
msg.sent_at = timezone.now()
|
msg.sent_at = timezone.now()
|
||||||
msg.save()
|
msg.save()
|
||||||
|
|
|
@ -117,7 +117,7 @@ WSGI_APPLICATION = "shiftregister.wsgi.application"
|
||||||
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
|
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
"default": env.db_url(default=f"sqlite:///{BASE_DIR / 'db.sqlite3'}"),
|
"default": env.db_url(default=f"sqlite:///{BASE_DIR / 'db.sqlite3'}?timeout=10000"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue