From 4f5df05e4d43972e903c0e67b321f155a0f3bdfa Mon Sep 17 00:00:00 2001 From: Toomore Chiang Date: Mon, 23 Dec 2024 21:51:12 +0800 Subject: [PATCH] Changed time format Signed-off-by: Toomore Chiang --- asn_coverage/ripe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asn_coverage/ripe.py b/asn_coverage/ripe.py index b512d41..5299ae8 100644 --- a/asn_coverage/ripe.py +++ b/asn_coverage/ripe.py @@ -73,7 +73,7 @@ def asn_list(loc=None): @click.option('--loc', help='location, two-letters') def save_to_csv(loc=None): ''' Save datas to CSV ''' - with open(f'./asns_{arrow.utcnow().format("YYYYMMDD")}.csv', 'w+', encoding='UTF8') as csv_files: + with open(f'./asns_{arrow.utcnow().format("YYYYMMDDTHH")}.csv', 'w+', encoding='UTF8') as csv_files: csv_writer = csv.DictWriter(csv_files, fieldnames=( 'no', 'location', 'org_id', 'registrar', 'reserved', 'name'),