• Resolved corij

    (@corij)


    In our league, our minor penalties are 1 minute and 30 seconds. It appears that the penalty minutes field is just an number, so I can’t enter time values, like 1:30, correct? Do I have to put 1.5? That would probably confuse people. Is there a way to do this correctly so PIM (penalties in minutes) can be entered as a time value, and have is sum up and display correctly for an event/team/player/etc?

    An example is on this page: http://ovalhockey.com/event/6090/ where there are a few penalty minutes (that I entered using time format), but it just totals up the integer values (since it’s treated as a number field). So for the first team, it shows 5 total penalty minutes instead of 6.

    Thank you!
    corij

Viewing 4 replies - 1 through 4 (of 4 total)
  • Roch

    (@rochesterj)

    Hi!

    Thanks for getting in touch!

    It should be a text field so anything you add there is considered. For example 1:30 or 1’30 or anything else.

    What happens when you add it this way?

    Kind Regards,
    -Roch

    Thread Starter corij

    (@corij)

    Yes, I can put in 1:30, and I do. However, it does not total up correctly. Example on this page where Thunder Ducks have penalty minutes for multiple players, which should total 6:00, but it just shows “5”, which makes me think it just takes the integer value of the text field to add up, not accounting for time values (i.e. 1:30 + 1:30 should equa 3:00).

    Roch

    (@rochesterj)

    Hi @corij

    I see what you mean now.

    This could be it indeed. The easiest way around that I can think of is using the 1.5 way to store the data, and some custom code to change that visually. For example some JS code to change that column to the X:Y format or some PHP code for that.

    Kind Regards,
    -Roch

    Thread Starter corij

    (@corij)

    I thought I would follow up on this thread and provide an official answer I received from SportsPress (Pro Support). Sportspress does not support time values. So, you have to use 1.5 for 1:30. On the data entry screen (event box score), it does not show the decimals in the total, but it does save the decimal value, and does calculate correctly. (i.e. 1.5 + 1.5 + 1.5 = 4.5).

    This at least captures the data, but it is not intuitive or match any sport I’m aware of.

    I’ll mark this thread as resolved because I received an answer, but the feature itself is not working as it should.

    Thank you!
    corij

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Partial minute penalties?’ is closed to new replies.