zen0wu / topcoder-greed

greedy editor for topcoder arena
Apache License 2.0
229 stars 48 forks source link

Preserve the fractional part of match number, for 'category(srm=1)' #138

Closed wookayin closed 10 years ago

wookayin commented 10 years ago

${Contest;category(srm=1)} renders the SRM 600.5 into SRM 600, not SRM 600.5. This patch preserve the fractional part, only when 'srm=1' option is specified.

I think it might be useful because the option 'srm=1' is usually used with the special aim of separating each round differently. (similar but slightly different from ${Contest.Name} -- it normalizes the match category)

zen0wu commented 10 years ago

@vexorian Have you encountered this bug?

vexorian commented 10 years ago

I actually intentionally ignored this because the0.5 matches are rare and SRM 600.5 is not actually a Single Round Match but a "Special Round Match". However, I can see why it would be desirable when srm=1. Merge away.