Ajustes para unificar dependencia de current_url.

This commit is contained in:
mabejoyb
2026-05-13 18:22:54 -03:00
parent 252085029a
commit dd1a529cdf
5 changed files with 82 additions and 15 deletions

View File

@@ -148,6 +148,8 @@ try:
# Retornar valores (Rocketbot compatible)
try:
SetVar('current_url', doc_url)
SetVar('gdoc_id', copied_doc['id'])
SetVar('gdoc_url_final', doc_url)
SetVar('doc_copy_created', True)
except NameError:
pass # Si no está en Rocketbot, solo imprime
@@ -163,4 +165,4 @@ except Exception as e:
SetVar('doc_copy_created', False)
except NameError:
pass
print(f"Error detectado: {str(e)}")
print(f"Error detectado: {str(e)}")