Skip to content

Commit

Permalink
Merge pull request #541 from otahirs/guessClass
Browse files Browse the repository at this point in the history
improve chance to match gender in class suggestion
  • Loading branch information
fvacek committed Mar 28, 2020
2 parents 3eda731 + b013278 commit c7027ea
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -294,7 +294,7 @@ QString CompetitorWidget::guessClassFromRegistration(const QString &registration
qfDebug() << "\t age:" << runner_age;

// try to guess gender prefix - D or H
char gender = (registration.mid(5, 1).toInt() == 5)? 'D': 'H';
char gender = (registration.mid(5, 1).toInt() >= 5)? 'D': 'H';

// go trough classes, if runner age >= class then asign
// reverse array order and comparison for juniors
Expand Down

0 comments on commit c7027ea

Please sign in to comment.