Skip to content

Commit

Permalink
Resolve language to language code
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Dec 17, 2019
1 parent 22bce0b commit 81c2344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imxml2django.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8; mode: python -*-
# Time-stamp: <2019-12-09 12:52:47 (kthoden)>
# Time-stamp: <2019-12-17 12:03:08 (kthoden)>

"""
Create an XML file that can be inserted into the Django database
Expand Down Expand Up @@ -1449,7 +1449,7 @@ def bring_footnote_down_django(footnote, fragment, footnote_number, object_numbe
etree.strip_elements(xmlHyperlink, with_tail=True, *['allowbreak'])
accessed_date_element = xmlHyperlink.find("./date")
accessed_date = accessed_date_element.get("when")
formatted_date = format_date(accessed_date, strLanguage)
formatted_date = format_date(accessed_date, libeoaconvert.two_letter_language(strLanguage))
# etree.strip_elements(accessed_date_element, with_tail=True)
accessed_date_element.tag = "elementtobestripped"
accessed_date_element.tail = ""
Expand Down

0 comments on commit 81c2344

Please sign in to comment.