From 199a9678881881c965997a009fcc275e36cbc081 Mon Sep 17 00:00:00 2001 From: Watchful1 Date: Sun, 7 Jan 2024 20:29:55 -0800 Subject: [PATCH] Here too --- personal/combine/build_month.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/personal/combine/build_month.py b/personal/combine/build_month.py index 3413f36..aa2b25d 100644 --- a/personal/combine/build_month.py +++ b/personal/combine/build_month.py @@ -84,7 +84,10 @@ if __name__ == "__main__": count_objects = 0 count_bytes = 0 minute_iterator = month - end_time = month.replace(month=month.month + 1) + if month.month == 12: + end_time = month.replace(year=month.year + 1, month=1) + else: + end_time = month.replace(month=month.month + 1) while minute_iterator < end_time: minute_file_path = os.path.join(args.input, args.type, minute_iterator.strftime('%y-%m-%d'), f"{prefix}_{minute_iterator.strftime('%y-%m-%d_%H-%M')}.zst") for obj, line, _ in utils.read_obj_zst_meta(minute_file_path):