fixed entries
This commit is contained in:
@ -100,7 +100,7 @@ def update_readme():
|
||||
readme_text = read_text(readme_file)
|
||||
|
||||
# compile regex for identifying the building blocks
|
||||
regex = re.compile(r"(# Open Source Games\n\n)(.*)(\nA collection.*)", re.DOTALL)
|
||||
regex = re.compile(r"(.*?)(\[comment\]: # \(start.*?end of autogenerated content\))(.*)", re.DOTALL)
|
||||
|
||||
# apply regex
|
||||
matches = regex.findall(readme_text)
|
||||
@ -600,6 +600,12 @@ def svn_repo(repo):
|
||||
"""
|
||||
if repo.startswith('https://svn.code.sf.net/p/') and repo.endswith('/code/'):
|
||||
return repo
|
||||
|
||||
if repo.startswith('http://svn.uktrainsim.com/svn/'):
|
||||
return repo
|
||||
|
||||
if repo is 'https://rpg.hamsterrepublic.com/source/wip':
|
||||
return repo
|
||||
|
||||
# not svn
|
||||
return None
|
||||
@ -675,6 +681,8 @@ def update_primary_code_repositories():
|
||||
unconsumed_entries.append([info['title'], info[field]])
|
||||
#if info['code repository']:
|
||||
# print('Entry "{}" unconsumed repo: {}'.format(info['title'], info[field]))
|
||||
#if not info['code repository']:
|
||||
# print('Entry "{}" unconsumed repo: {}'.format(info['title'], info[field]))
|
||||
|
||||
# sort them alphabetically (and remove duplicates)
|
||||
for k, v in primary_repos.items():
|
||||
@ -695,7 +703,7 @@ if __name__ == "__main__":
|
||||
infos = assemble_infos()
|
||||
|
||||
# recount and write to readme
|
||||
# update_readme()
|
||||
update_readme()
|
||||
|
||||
# generate list in toc files
|
||||
update_category_tocs()
|
||||
|
Reference in New Issue
Block a user