aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-04-12 11:21:37 +0100
committerMatthew Lemon <y@yulqen.org>2023-04-12 11:21:37 +0100
commit786fd2865f44cc617989d74423bf6ede128a61a2 (patch)
tree033029167f2d03e77631ddc8b04d626a6950bc3c
parent8fae25cbb3e50e75dc11134f63dad377362e65f6 (diff)
wip: Adds TODO in Cleanser
We need to be able to do check format of year passing through as 2022 or 1922. Logic isn't correct somewhere.
-rw-r--r--datamaps/process/cleansers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/datamaps/process/cleansers.py b/datamaps/process/cleansers.py
index d2225ce..7c5aa8d 100644
--- a/datamaps/process/cleansers.py
+++ b/datamaps/process/cleansers.py
@@ -188,6 +188,8 @@ class Cleanser:
"""
Handles dates in "03/05/2016" format.
"""
+ # TODO: separate function needed here to assert that month values are in 'MM' format
+ # TODO: investigate rules for the year
m = re.match(regex, self.string)
if int(m.groups()[-1]) in range(1965, 1967):
logger.warning(