From patchwork Thu Feb 24 17:52:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 5277 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4K4L8W6MPhz3xfp for ; Thu, 24 Feb 2022 17:52:27 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4K4L8S70Vjz4YQ; Thu, 24 Feb 2022 17:52:24 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4K4L8S5YW0z2ynk; Thu, 24 Feb 2022 17:52:24 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4K4L8R1QP5z2xKZ; Thu, 24 Feb 2022 17:52:23 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4K4L8P45Dpz1xJ; Thu, 24 Feb 2022 17:52:21 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1645725142; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=KwYlbte/hH+U9P07UVEw7b11V2YONUv6KzbABTzs+iI=; b=PrrLYjNPbjr0xN5ubOdedDxSgE0rmwI6da9X9qPpp/uSoqHEZNvDadIetoeKkvldHO5wbl filzrl/D1o5kE3Aw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1645725142; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=KwYlbte/hH+U9P07UVEw7b11V2YONUv6KzbABTzs+iI=; b=qkIeTSB6BF6EazvEP7gW7Ronh2KICg1l5H9YResgjux/cFTICptPg4rjftuLe9Y/sFtzGI /KOT9IYqy0DlpWGSPsnlxpsM7zLjEzAT8seVd8CYYWDMfmsVYTY0yfXlPqZDMRkfVNMzQk jh4Vy579Q2N+QGTJq0gy6rSFQZ3MNYeVtuRAFzdQOE3qOk8u7gwm+/iB7UJm1Z4eFZF5Zc f2mWJ7GwXOuywJE4BR76NADLSjvxkCud81sJ0v5EiIxMtEXd6qnA4Ixljc1ioEuDRaBeS/ gMeFqzAox5FYMa9UriDRgn/Gv8Ffu6b1M+azLF4ycJQF8dT7R5EudqG9LBPOyQ== From: Stefan Schantl To: location@lists.ipfire.org Subject: [PATCH] export: Remove prefix when exporting countries. Date: Thu, 24 Feb 2022 18:52:13 +0100 Message-Id: <20220224175213.4521-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: development@lists.ipfire.org Errors-To: location-bounces@lists.ipfire.org Sender: "Location" Signed-off-by: Stefan Schantl --- src/python/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/export.py b/src/python/export.py index a9774e8..be33847 100644 --- a/src/python/export.py +++ b/src/python/export.py @@ -149,7 +149,7 @@ class Exporter(object): directory, prefix=country_code, suffix=self.writer.suffix, family=family, ) - writers[country_code] = self.writer.open(filename, prefix="CC_%s" % country_code) + writers[country_code] = self.writer.open(filename, prefix="%s" % country_code) # Create writers for ASNs for asn in asns: