Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
diegovelezg committed Aug 22, 2024
2 parents cedaf09 + 5ef4a31 commit e318704
Show file tree
Hide file tree
Showing 3 changed files with 273 additions and 693 deletions.
5 changes: 4 additions & 1 deletion generate_markdown_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def generate_markdown_list(root_dir):
config_data = read_config_data(config_file)

discord_url = config_data.get("discord_URL", {}).get(lang, "")
discord_channel_id, discord_message_id = discord_url.split('/')[-2:], ["", ""]
if discord_url:
discord_channel_id, discord_message_id = discord_url.split('/')[-2:]
else:
discord_channel_id, discord_message_id = None, None

slug = f"{track or ''}{'-' + skill if skill else ''}{'-' + module if module else ''}-{os.path.splitext(file)[0]}"

Expand Down
Loading

0 comments on commit e318704

Please sign in to comment.