diff --git a/config/settings/base.py b/config/settings/base.py index a2ebbb9..fd2e62c 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -127,6 +127,7 @@ # https://docs.djangoproject.com/en/5.1/ref/settings/#databases DATABASES = {"default": env.db("DATABASE_URL")} DATABASES["default"]["ATOMIC_REQUESTS"] = True +DATABASES["default"]["CONN_MAX_AGE"] = 0 # Password validation diff --git a/local.yml b/local.yml index b01cb87..460d5ec 100644 --- a/local.yml +++ b/local.yml @@ -39,6 +39,7 @@ services: - "5439:5432" env_file: - ./.envs/.local/.postgres + command: postgres -c max_connections=200 redis: image: redis:6 diff --git a/markup_doc/migrations/0005_merge_20260602_1323.py b/markup_doc/migrations/0005_merge_20260602_1323.py new file mode 100644 index 0000000..c96b14f --- /dev/null +++ b/markup_doc/migrations/0005_merge_20260602_1323.py @@ -0,0 +1,14 @@ +# Generated by Django 6.0.5 on 2026-06-02 13:23 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('markup_doc', '0003_remove_articledocxmarkup_dateiso_and_more'), + ('markup_doc', '0004_articledocxmarkup_xref_status'), + ] + + operations = [ + ] diff --git a/markup_doc/xml.py b/markup_doc/xml.py index 64c05ab..409f1cd 100644 --- a/markup_doc/xml.py +++ b/markup_doc/xml.py @@ -384,28 +384,6 @@ def get_xml(article_docx, data_front, data, data_back, xref_map=None): node_tmp = etree.SubElement(node, 'issue') node_tmp.text = str(issue.number) - if article_docx.dateiso: - node_tmp = etree.SubElement(node, "pub-date") - node_tmp.set("date-type", "collection") - node_tmp.set("publication-format", "electronic") - - if ( - article_docx.dateiso.split("-")[2] - and article_docx.dateiso.split("-")[2] != "00" - ): - node_tmp2 = etree.SubElement(node_tmp, "day") - node_tmp2.text = article_docx.dateiso.split("-")[2] - - if ( - article_docx.dateiso.split("-")[1] - and article_docx.dateiso.split("-")[1] != "00" - ): - node_tmp2 = etree.SubElement(node_tmp, "month") - node_tmp2.text = article_docx.dateiso.split("-")[1] - - node_tmp2 = etree.SubElement(node_tmp, "year") - node_tmp2.text = article_docx.dateiso.split("-")[0] - if article_docx.elocatid: node_tmp = etree.SubElement(node, "elocation-id") node_tmp.text = article_docx.elocatid diff --git a/markuplib/function_docx.py b/markuplib/function_docx.py index c9646cd..924bde6 100644 --- a/markuplib/function_docx.py +++ b/markuplib/function_docx.py @@ -603,7 +603,7 @@ def extrae_Tabla(element, rels_map, namespaces): found_fb = False review_fb = False found_hiperlinks = False - sections = [sections[-1]] + sections = [sections[-1]] if sections else [] first_block = "" tmp_content = [] abstract_mode = False