Skip to content

Commit

Permalink
[FEED PARSER] [WORDPRESS WXR] fixed bad field type
Browse files Browse the repository at this point in the history
_current_version was set as a string instead of a int, resulting in bad
behaviour afterwards

SDTS-56
  • Loading branch information
jerome-poisson authored and petrjasek committed Jun 30, 2017
1 parent 60dc5a9 commit 5777c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superdesk/io/feed_parsers/wordpress_wxr.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self):
self.default_mapping = OrderedDict([
('guid', 'guid'),
('item_id', 'guid'),
('_current_version', lambda _: "1"),
('_current_version', lambda _: 1),
('versioncreated', {'xpath': 'pubDate/text()',
'filter': parsedate_to_datetime}),
('author', 'dc:creator'),
Expand Down

0 comments on commit 5777c7d

Please sign in to comment.