diff --git a/fediseer/apis/models/v1.py b/fediseer/apis/models/v1.py index ba5e3d0..0b55420 100644 --- a/fediseer/apis/models/v1.py +++ b/fediseer/apis/models/v1.py @@ -73,5 +73,5 @@ class Models: 'target_domain': fields.String(description="The instance domain which was the target of this activity", example="lemmy.dbzer0.com"), 'report_type': fields.String(description="The type of report activity", enum=[e.name for e in enums.ReportType]), 'report_activity': fields.String(description="The activity reported", enum=[e.name for e in enums.ReportActivity]), - 'created': fields.DateTime(description="The date this record was added",), + 'created': fields.DateTime(description="The date this record was added"), }) \ No newline at end of file diff --git a/fediseer/apis/v1/report.py b/fediseer/apis/v1/report.py index 92d5f45..eb23f4e 100644 --- a/fediseer/apis/v1/report.py +++ b/fediseer/apis/v1/report.py @@ -51,7 +51,8 @@ class Report(Resource): 'target_domain': r.target_domain, 'report_type': r.report_type.name, 'report_activity': r.report_activity.name, - 'created': r.created, + 'created': r.created.isoformat() + 'Z', } ) + logger.debug(report_response) return report_response,200