Skip to content

Support for the worldcup.xml

Diogo Pires requested to merge diopires/pychpp:dev into develop

Hi!

I've added support for the worldcup.xml.

Some important remarks:

  • The worldcup.xml allows for 2 different views: matches and groups. The contents of the file are considerably different for the 2 views. Because of this, I've decided to create 2 different classes (one for each view) and consequently added 2 methods to the CHPP class. I think this makes it much simpler to handle and use.
  • The viewMatches option returns objects with empty values. Because of this, I've changed one of the datetime methods in ht_xml.py to return None accordingly. Let me know if you agree with those changes.

Merge request reports