From 9ddb43976270596b0aed9aa6e3bd4b6e04a2e290 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Tue, 8 Sep 2020 18:41:16 +0200 Subject: [PATCH] Tiny clean ups to patch makers - Make it deduplicate - Remove the temp one --- patch_makers.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/patch_makers.py b/patch_makers.py index 1fd2c83..32f6106 100644 --- a/patch_makers.py +++ b/patch_makers.py @@ -124,21 +124,7 @@ class AnalyticsPatchMaker(GerritBot): self.project, today.strftime("%Y-%m-%d 00:00:00") )) + projects = list(set(projects)) projects.sort() with open('static_data/pageview/whitelist/whitelist.tsv', 'w') as f: f.write('\n'.join(projects) + '\n' + '\n'.join(non_projects)) - - -class CxPatchMakerTemp(GerritBot): - def __init__(self): - super().__init__( - 'mediawiki/services/cxserver', - 'Order entries by alphabetical order\n\nThis would make creating automated patches easier\n\nBug: T253439' - ) - - def changes(self): - with open('config/languages.yaml', 'r') as f: - lines = f.read().split('\n')[:-1] - lines.sort() - with open('config/languages.yaml', 'w') as f: - f.write('\n'.join(lines) + '\n')