Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ services:
- "5439:5432"
env_file:
- ./.envs/.local/.postgres
command: postgres -c max_connections=200

redis:
image: redis:6
Expand Down
14 changes: 14 additions & 0 deletions markup_doc/migrations/0005_merge_20260602_1323.py
Original file line number Diff line number Diff line change
@@ -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 = [
]
22 changes: 0 additions & 22 deletions markup_doc/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion markuplib/function_docx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading