comparison tasks/task_social_contract.py @ 22:5fd933e238bb

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Mon, 22 May 2023 09:11:54 +0200
parents b5fc67c97c50
children e7c7327f9f25
comparison
equal deleted inserted replaced
21:67487063f421 22:5fd933e238bb
12 12
13 13
14 class Task(task.Task): 14 class Task(task.Task):
15 15
16 def start(self): 16 def start(self):
17 sat_path = self.getConfig("sat_repos_path") 17 sat_path = self.config_get("sat_repos_path")
18 for filepath in glob.glob(os.path.join(sat_path, "CONTRAT_SOCIAL*")): 18 for filepath in glob.glob(os.path.join(sat_path, "CONTRAT_SOCIAL*")):
19 filename = os.path.basename(filepath) 19 filename = os.path.basename(filepath)
20 with open(filepath) as f: 20 with open(filepath) as f:
21 md = markdown.markdown(f.read()) 21 md = markdown.markdown(f.read())
22 build_path = os.path.join(self.build_path, filename + '.html') 22 build_path = os.path.join(self.build_path, filename + '.html')