diff --git a/photo_review/util/data_util.py b/photo_review/util/data_util.py index a345c51..dab8d85 100644 --- a/photo_review/util/data_util.py +++ b/photo_review/util/data_util.py @@ -8,9 +8,12 @@ def handle_decimal(string): return "" string = re.sub(r'[^0-9.]', '', string) if "." not in string: - return string - front, back = string.rsplit('.', 1) - front = front.replace(".", "") + front = string + back = "" + else: + front, back = string.rsplit('.', 1) + front = front.replace(".", "") + front = front[-16:] if back: back = "." + back