yax-lakam-tuun/maya-decipherment

Ahpula script fails if Haab date is at the End of a month

Closed this issue · 1 comments

If one types python3 ahpula.py -cr 2023-01-08 in the terminal, the script crashes.
See traceback:

Traceback (most recent call last):
  File "/workspaces/maya-decipherment/ahpula.py", line 336, in <module>
    main(sys.argv)
  File "/workspaces/maya-decipherment/ahpula.py", line 323, in main
    print_plain(
  File "/workspaces/maya-decipherment/ahpula.py", line 278, in print_plain
    dates.append(f"{maya.haab.standard_notation()}")
  File "/workspaces/maya-decipherment/ahpula.py", line 232, in standard_notation
    return f"End of {month_name()}" if self.day() == HaabDate.WINAL_DAYS else f"{self.day()} {month_name}"
TypeError: 'str' object is not callable

It crashes if given date falls onto an end of a Haab month.

Problem solved