Minor GUI refactor - Drag+drop issues introduced
This commit is contained in:
@@ -9,6 +9,7 @@ from typing import Optional, Dict
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def generate_path_from_pattern(pattern_string: str, token_data: dict) -> str:
|
||||
logger.debug(f"generate_path_from_pattern called with pattern: '{pattern_string}', token_data keys: {list(token_data.keys())}")
|
||||
"""
|
||||
Generates a file path by replacing tokens in a pattern string with values
|
||||
from the provided token_data dictionary.
|
||||
@@ -54,7 +55,8 @@ def generate_path_from_pattern(pattern_string: str, token_data: dict) -> str:
|
||||
# Add variations like #### for IncrementingValue
|
||||
known_tokens_lc = {
|
||||
'assettype', 'supplier', 'assetname', 'resolution', 'ext',
|
||||
'incrementingvalue', '####', 'date', 'time', 'sha5', 'applicationpath'
|
||||
'incrementingvalue', '####', 'date', 'time', 'sha5', 'applicationpath',
|
||||
'asset_category'
|
||||
}
|
||||
|
||||
output_path = pattern_string
|
||||
|
||||
Reference in New Issue
Block a user