Enhancements for validation of DB urls
We now turn off retries and DB pooling, and make sure to always close the connection
This commit is contained in:
parent
d15dcae505
commit
9a40e99a8f
2 changed files with 20 additions and 8 deletions
|
@ -1,5 +1,7 @@
|
|||
import json
|
||||
|
||||
from peewee import SQL
|
||||
|
||||
from data.database import (Notification, NotificationKind, User, Team, TeamMember, TeamRole,
|
||||
RepositoryNotification, ExternalNotificationEvent, Repository,
|
||||
ExternalNotificationMethod, Namespace, db_for_update)
|
||||
|
@ -82,7 +84,6 @@ def list_notifications(user, kind_name=None, id_filter=None, include_dismissed=F
|
|||
elif limit:
|
||||
query = query.limit(limit)
|
||||
|
||||
from peewee import SQL
|
||||
return query.order_by(SQL('cd desc'))
|
||||
|
||||
|
||||
|
|
Reference in a new issue