Skip to content

Commit

Permalink
remove unwanted code
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro committed Oct 24, 2023
1 parent a433d9f commit ce9051d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions server/planning/feed_parsers/superdesk_planning_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ def parse(self, tree: Element, provider=None):
"_id": guid,
}

planning_type = get_planning_schema("planning")

self.parse_item_meta(tree, item, planning_type)
self.parse_content_meta(tree, item, planning_type)
self.parse_item_meta(tree, item)
self.parse_content_meta(tree, item)
self.parse_news_coverage_set(tree, item)
self.parse_news_coverage_status(tree, item)

Expand All @@ -105,7 +103,7 @@ def parse(self, tree: Element, provider=None):
except Exception as ex:
raise ParserError.parseMessageError(ex, provider)

def parse_item_meta(self, tree, item, planning_type):
def parse_item_meta(self, tree, item):
"""Parse itemMeta tag
:param tree: tree
Expand All @@ -131,7 +129,7 @@ def parse_item_meta(self, tree, item, planning_type):
except (AttributeError, IndexError):
item["pubstatus"] = POST_STATE.USABLE

def parse_content_meta(self, tree, item, planning_type):
def parse_content_meta(self, tree, item):
"""Parse contentMeta tag
:param tree: tree
Expand Down

0 comments on commit ce9051d

Please sign in to comment.