Skip to content

Commit

Permalink
Merge pull request #12 from ivmelo/dev
Browse files Browse the repository at this point in the history
High school report grade.
  • Loading branch information
ivmelo authored Aug 18, 2016
2 parents 7fe279f + 669f4f3 commit a680993
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/Telegram/Commands/AuthorizeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public function handle($arguments)

// Grab user info for display.
$name = $suap_data['nome'];
$situation = $suap_data['situacao'];
$program = $suap_data['curso'];
$situation = $suap_data['situacao'];

// All set, message user.
$this->replyWithMessage([
Expand Down
12 changes: 11 additions & 1 deletion app/Telegram/Tools/Markify.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ public static function parseBoletim($grades) {
N2: ' . $grade['bm2_nota'] . ' ';
}

if (isset($grade['bm3_nota']) && $grade['bm3_nota']) {
$course_info = $course_info . '
N1: ' . $grade['bm3_nota'] . ' ';
}

if (isset($grade['bm4_nota']) && $grade['bm4_nota']) {
$course_info = $course_info . '
N1: ' . $grade['bm4_nota'] . ' ';
}

if (isset($grade['media']) && $grade['media']) {
$course_info = $course_info . '
Média: ' . $grade['media'] . ' ';
Expand All @@ -57,7 +67,7 @@ public static function parseBoletim($grades) {

if (isset($grade['mfd']) && $grade['mfd']) {
$course_info = $course_info . '
NAF: ' . $grade['mfd'];
MFD/Conceito: ' . $grade['mfd'];
}

$course_info = $course_info . '
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"ivmelo/suapclient": "^0.0.1",
"ivmelo/suapclient": "^0.0.2",
"irazasyed/telegram-bot-sdk": "^2.0",
"pda/pheanstalk": "~3.0"
},
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a680993

Please sign in to comment.