Save nightlies at the right place #11

This commit is contained in:
Emmanuel Engelhart 2017-02-19 10:29:57 +01:00
parent bfc08574ce
commit c092c106f5
1 changed files with 2 additions and 2 deletions

View File

@ -21,9 +21,9 @@ FILES_TO_UPLOAD = [
class Archiver: class Archiver:
def __init__(self, options): def __init__(self, options):
self.options = options self.options = options
self.working_directory = "nightly_{:%Y-%m-%d}".format(datetime.date.today()) self.working_directory = "{:%Y-%m-%d}".format(datetime.date.today())
os.makedirs(self.working_directory, exist_ok=True) os.makedirs(self.working_directory, exist_ok=True)
self.archive_basename = "kiwix-tools.{:%Y-%m-%d}".format(datetime.date.today()) self.archive_basename = "kiwix-tools_{:%Y-%m-%d}".format(datetime.date.today())
self.files_to_upload = list(self._gen_file_list()) self.files_to_upload = list(self._gen_file_list())
def _gen_file_list(self): def _gen_file_list(self):