From d5af0eda9f2dd9310555fdade976f992c01f5700 Mon Sep 17 00:00:00 2001
From: thomaswoehlke <thomas.woehlke@gmail.com>
Date: Fri, 28 May 2021 23:38:22 +0200
Subject: [PATCH] work

---
 src/flask_covid19/blueprints/data_who/who_model.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/flask_covid19/blueprints/data_who/who_model.py b/src/flask_covid19/blueprints/data_who/who_model.py
index ffcf76e7..02f82ec1 100644
--- a/src/flask_covid19/blueprints/data_who/who_model.py
+++ b/src/flask_covid19/blueprints/data_who/who_model.py
@@ -152,7 +152,7 @@ class WhoData(BlueprintFactTable):
     )
 
     def __repr__(self):
-        return "%s(%s %s)" % (self.__class__.__name__, self.date_reported_id, self.location_id)
+        return "%s(%s %s)" % (self.__class__.__name__, self.date_reported.__repr__(), self.location.__repr__())
 
     id = db.Column(db.Integer, primary_key=True)
     date_reported_id = db.Column(db.Integer, db.ForeignKey('who_date_reported.id'), nullable=False)
-- 
GitLab