You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Revision history of "Analytics/Systems/Manual maintenance/Refined flags script"

Jump to navigation Jump to search

Diff selection: Mark the radio boxes of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

  • curprev 21:43, 11 August 2021imported>Milimetric 892 bytes +892 Created page with "<pre> from datetime import datetime, timedelta from_dt = datetime.strptime('2021-07-19 01', '%Y-%m-%d %H') to_dt = datetime.strptime('2021-08-09 00', '%Y-%m-%d %H') def get_date_parts(dt): return dt.year, dt.month, dt.day, dt.hour for n in range(int((to_dt - from_dt).total_seconds() / 60 / 60) + 1): year, month, day, hour = get_date_parts(from_dt + timedelta(hours=n)) # make parent directories print(f'hdfs dfs -mkdir -p /wmf/data/event/mediawiki_pag..."