Skip to content

Commit

Permalink
saveLoadableOIM: Add duration data type to properly output
Browse files Browse the repository at this point in the history
  • Loading branch information
hefischer committed Dec 14, 2018
1 parent 7be8e4b commit 8a9f50c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arelle/plugin/saveLoadableOIM.py
Expand Up @@ -13,7 +13,7 @@
from arelle.ModelInstanceObject import ModelFact
from arelle.ModelValue import (qname, QName, DateTime, YearMonthDuration,
dayTimeDuration, DayTimeDuration, yearMonthDayTimeDuration, Time,
gYearMonth, gMonthDay, gYear, gMonth, gDay)
gYearMonth, gMonthDay, gYear, gMonth, gDay, IsoDuration)
from arelle.ModelRelationshipSet import ModelRelationshipSet
from arelle.UrlUtil import relativeUri
from arelle.ValidateXbrlCalcs import inferredDecimals
Expand Down Expand Up @@ -117,7 +117,8 @@ def oimValue(object, decimals=None):
if isinstance(object, bool):
return "true" if object else "false"
if isinstance(object, (DateTime, YearMonthDuration, DayTimeDuration, Time,
gYearMonth, gMonthDay, gYear, gMonth, gDay)):
gYearMonth, gMonthDay, gYear, gMonth, gDay,
IsoDuration)):
return str(object)
return object

Expand Down

0 comments on commit 8a9f50c

Please sign in to comment.