mirror of
https://github.com/offa/android-foss.git
synced 2026-07-21 17:35:38 +02:00
count categories that starts with '## –' as well
This commit is contained in:
@@ -72,6 +72,11 @@ def main():
|
|||||||
if lines[i].startswith("### •"):
|
if lines[i].startswith("### •"):
|
||||||
category = Category(lines[i][6:-1])
|
category = Category(lines[i][6:-1])
|
||||||
categories.append(category)
|
categories.append(category)
|
||||||
|
# This is also a category
|
||||||
|
elif lines[i].startswith("## –"):
|
||||||
|
category_name = re.findall("(?<=##\s–\s).*?(?=\s–)", lines[i])[0]
|
||||||
|
category = Category(category_name)
|
||||||
|
categories.append(category)
|
||||||
# This is an app
|
# This is an app
|
||||||
elif lines[i].startswith("*"):
|
elif lines[i].startswith("*"):
|
||||||
# The last category in the categories list is the one we're working on
|
# The last category in the categories list is the one we're working on
|
||||||
|
|||||||
Reference in New Issue
Block a user