mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-24 02:13:46 +08:00
fix
This commit is contained in:
@@ -67,6 +67,11 @@ jobs:
|
||||
|
||||
config = DiscourseConfig.from_env()
|
||||
client = DiscourseClient(config)
|
||||
|
||||
def category_id_for(path: str) -> int:
|
||||
top_level = path.split('/')[0]
|
||||
return config.category_mapping.get(top_level, config.category_mapping.get('documentation', 114))
|
||||
|
||||
category_id = category_id_for(DOC_PATH)
|
||||
print(f'Category ID: {category_id}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user