mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-25 00:33:41 -04:00
Remove NotificationStatistics
NotificationStatistics was added as a spike but didn't work out as expected. This is finally removing all that unused code. I'll drop the table in the next PR
This commit is contained in:
@@ -325,18 +325,6 @@ class TemplateHistorySchema(BaseSchema):
|
||||
model = models.TemplateHistory
|
||||
|
||||
|
||||
class NotificationsStatisticsSchema(BaseSchema):
|
||||
class Meta:
|
||||
model = models.NotificationStatistics
|
||||
strict = True
|
||||
|
||||
@pre_dump
|
||||
def handle_date_str(self, in_data):
|
||||
if isinstance(in_data, dict) and 'day' in in_data:
|
||||
in_data['day'] = datetime.strptime(in_data['day'], '%Y-%m-%d').date()
|
||||
return in_data
|
||||
|
||||
|
||||
class ApiKeySchema(BaseSchema):
|
||||
|
||||
created_by = field_for(models.ApiKey, 'created_by', required=True)
|
||||
@@ -673,7 +661,6 @@ notification_with_personalisation_schema = NotificationWithPersonalisationSchema
|
||||
invited_user_schema = InvitedUserSchema()
|
||||
permission_schema = PermissionSchema()
|
||||
email_data_request_schema = EmailDataSchema()
|
||||
notifications_statistics_schema = NotificationsStatisticsSchema()
|
||||
notifications_filter_schema = NotificationsFilterSchema()
|
||||
service_history_schema = ServiceHistorySchema()
|
||||
api_key_history_schema = ApiKeyHistorySchema()
|
||||
|
||||
Reference in New Issue
Block a user