globals().update(locals()) antes de los SCOPES + Antes del Main / Refactor code structure for improved readability and maintainability

This commit is contained in:
mabejoyb
2026-05-22 10:59:02 -03:00
parent 4af511d016
commit f2c833d91f
10 changed files with 1846 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -166,4 +166,8 @@ pdf_data = export_doc_as_pdf(drive_service, DOC_ID)
result = send_email(gmail_service, to_emails, SUBJECT,
BODY_TEXT, pdf_data, pdf_filename)
print('Mensaje enviado. ID:', result.get('id'))
SetVar('res_envio', True)
try:
SetVar('res_envio', True)
except NameError:
pass

1838
formas_de_pago.py Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -528,6 +528,8 @@ def _resolve_google_scopes():
return [s.strip("'\"")]
# Rocketbot quirk FIX
globals().update(locals())
SCOPES = _resolve_google_scopes()
@@ -922,11 +924,9 @@ def replace_marker_by_index(
"text": replacement_text or "",
}
# Rocketbot quirk FIX
# Rocketbot quirk FIX temprano
globals().update(locals())
# -----------------------------------------------------------
# MAIN
# -----------------------------------------------------------