lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.20-32-gbc689fd

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 1.20-32-gbc689fd



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  bc689fdddfb9dfa5ba60ad7bd08fb2533086d3cb (commit)
      from  8283dbb08dd5e8c720a0ece468b051a921334a07 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=bc689fdddfb9dfa5ba60ad7bd08fb2533086d3cb

commit bc689fdddfb9dfa5ba60ad7bd08fb2533086d3cb
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Mon Apr 21 23:27:41 2025 +0200

    Add missing verify argument to Cedula check_dgii()

diff --git a/stdnum/do/cedula.py b/stdnum/do/cedula.py
index 7cf4627..5851b92 100644
--- a/stdnum/do/cedula.py
+++ b/stdnum/do/cedula.py
@@ -177,7 +177,7 @@ def format(number):
     return '-'.join((number[:3], number[3:-1], number[-1]))
 
 
-def check_dgii(number, timeout=30):  # pragma: no cover
+def check_dgii(number, timeout=30, verify=True):  # pragma: no cover
     """Lookup the number using the DGII online web service.
 
     This uses the validation service run by the the Dirección General de
@@ -199,7 +199,7 @@ def check_dgii(number, timeout=30):  # pragma: no cover
     # this function isn't automatically tested because it would require
     # network access for the tests and unnecessarily load the online service
     # we use the RNC implementation and change the rnc result to cedula
-    result = rnc.check_dgii(number, timeout)
+    result = rnc.check_dgii(number, timeout, verify)
     if result and 'rnc' in result:
         result['cedula'] = result.pop('rnc')
     return result

-----------------------------------------------------------------------

Summary of changes:
 stdnum/do/cedula.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
python-stdnum