mirror of
https://github.com/clearml/clearml
synced 2025-02-07 21:33:25 +00:00
Support '#' and '?' in image names
This commit is contained in:
parent
c3acfbac20
commit
031d26a6cf
@ -183,7 +183,9 @@ class UploadEvent(MetricsEventAdapter):
|
||||
|
||||
@staticmethod
|
||||
def _replace_slash(part):
|
||||
return part.replace('\\', '/').strip('/').replace('/', '.slash.')
|
||||
# replace the three quote symbols we cannot have,
|
||||
# notice % will be converted to %25 when the link is quoted, so we should not use it
|
||||
return part.replace('\\', '/').strip('/').replace('/', '.slash.').replace('?', '0x3F').replace('#', '0x23')
|
||||
|
||||
def __init__(self, metric, variant, image_data, local_image_path=None, iter=0, upload_uri=None,
|
||||
file_history_size=None, delete_after_upload=False, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user