From 01301705c16a9af9aca18bab8a70b5c23ff24bed Mon Sep 17 00:00:00 2001 From: Meno25 Date: Sat, 25 Mar 2023 13:52:27 +0200 Subject: [PATCH] Update whitelist link (#59) --- new_wikis_handler.py | 2 +- patch_makers.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/new_wikis_handler.py b/new_wikis_handler.py index b9cc6ae..98feeac 100644 --- a/new_wikis_handler.py +++ b/new_wikis_handler.py @@ -140,7 +140,7 @@ class PostCreationHandler(object): def _check_analytics(self): path = get_gerrit_path( 'analytics/refinery', - 'static_data/pageview/whitelist/whitelist.tsv' + 'static_data/pageview/allowlist/allowlist.tsv' ) url = '.'.join(self.parts[:2]) refinery_whitelist = get_file_from_gerrit(path) diff --git a/patch_makers.py b/patch_makers.py index 2a80be4..cca4913 100644 --- a/patch_makers.py +++ b/patch_makers.py @@ -106,11 +106,11 @@ class AnalyticsPatchMaker(GerritBot): self.project = project super().__init__( 'analytics/refinery', - 'Add {} to pageview whitelist \n\nBug:{}'.format(project, bug_id) + 'Add {} to pageview allowlist \n\nBug:{}'.format(project, bug_id) ) def changes(self): - with open('static_data/pageview/whitelist/whitelist.tsv', 'r') as f: + with open('static_data/pageview/allowlist/allowlist.tsv', 'r') as f: lines = f.read().split('\n') projects = [] non_projects = [] @@ -126,5 +126,5 @@ class AnalyticsPatchMaker(GerritBot): )) projects = list(set(projects)) projects.sort() - with open('static_data/pageview/whitelist/whitelist.tsv', 'w') as f: + with open('static_data/pageview/allowlist/allowlist.tsv', 'w') as f: f.write('\n'.join(projects) + '\n' + '\n'.join(non_projects))