mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Sync Server - minor fix for single root
This commit is contained in:
parent
6564a8891c
commit
7f1fb8fb4e
2 changed files with 1 additions and 4 deletions
|
|
@ -164,6 +164,7 @@ class GDriveHandler(AbstractProvider):
|
|||
Returns:
|
||||
(string or dict)
|
||||
"""
|
||||
log.debug("self.presets::{}".format(self.presets["root"]))
|
||||
return self.presets["root"]
|
||||
|
||||
def create_folder(self, path):
|
||||
|
|
@ -527,7 +528,6 @@ class GDriveHandler(AbstractProvider):
|
|||
"provider.").
|
||||
format(str(provider_presets)))
|
||||
return
|
||||
log.info("Provider_presets::{}".format(provider_presets))
|
||||
return provider_presets
|
||||
|
||||
def _handle_q(self, q, trashed=False):
|
||||
|
|
|
|||
|
|
@ -638,9 +638,6 @@ class SyncServer():
|
|||
Returns:
|
||||
(string) - absolute path on remote location
|
||||
"""
|
||||
if isinstance(root_config, str):
|
||||
root_config = {'root': root_config}
|
||||
|
||||
path = file.get("path", "")
|
||||
path = path.format(**{"root": root_config})
|
||||
return path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue