summaryrefslogtreecommitdiff
path: root/wikibania/ban/Ban.py
diff options
context:
space:
mode:
Diffstat (limited to 'wikibania/ban/Ban.py')
-rw-r--r--wikibania/ban/Ban.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wikibania/ban/Ban.py b/wikibania/ban/Ban.py
index e06ca89..c6a55b4 100644
--- a/wikibania/ban/Ban.py
+++ b/wikibania/ban/Ban.py
@@ -28,7 +28,7 @@ class Ban:
28 self.expiry = datetime.strptime(ban_dict["expiry"], ISO_TIMESTAMP) 28 self.expiry = datetime.strptime(ban_dict["expiry"], ISO_TIMESTAMP)
29 29
30 def calc_duration(self): 30 def calc_duration(self):
31 return (self.expiry - self.timestamp).days 31 return (self.expiry - self.timestamp).days / round(365 / 12)
32 32
33 def lookup_country_code(self): 33 def lookup_country_code(self):
34 try: 34 try: