Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cogs/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_file_subfolder(file_info: Dict) -> Optional[str]:
if not file_path:
return None

known_subfolders = ['hack', 'dlc', 'manual', 'mod', 'patch', 'update', 'demo', 'translation', 'prototype']
known_subfolders = ['hack', 'dlc', 'manual', 'mod', 'patch', 'update', 'demo', 'translation', 'prototype', 'cheat']
path_parts = file_path.split('/')
for part in path_parts: # include all parts
if part.lower() in known_subfolders:
Expand All @@ -133,6 +133,7 @@ def get_subfolder_icon(subfolder: Optional[str]) -> str:
'demo': '馃幃',
'translation': '馃寪',
'prototype': '馃敩',
'cheat': '馃儚',
None: '馃搫' # Default for main/root files
}
return icons.get(subfolder, '馃搧')
Expand Down