This commit is contained in:
parent
647bdd80ea
commit
4a26f3fdd5
@ -11,5 +11,9 @@
|
|||||||
> - [x] Marks
|
> - [x] Marks
|
||||||
> - [x] Timetable
|
> - [x] Timetable
|
||||||
> - [x] Komens
|
> - [x] Komens
|
||||||
> - [ ] Absence
|
> - [x] Absence
|
||||||
> - [ ] Homework
|
> - [ ] Homework
|
||||||
|
|
||||||
|
> #### Known Issues
|
||||||
|
> this program will break if your terminal is higher or wider than 65535 characters (or UINT16_MAX if it ever changes), if you terminal is deeper than 65535 characters it shouldn't be an issue please refer to your 3D terminal manual for 2D compatibility
|
||||||
|
> *WILL NOT FIX BECAUSE OF 1 PERSON WITH A GIGALITIC TERMINAL*
|
||||||
|
|||||||
@ -56,7 +56,7 @@ void absence_page() {
|
|||||||
init_pair(i, i, COLOR_BLACK);
|
init_pair(i, i, COLOR_BLACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
const uint16_t sum_win_height = (resp_from_api["Absences"].size()*2)+1;
|
const uint16_t sum_win_height = (resp_from_api["Absences"].size()*2)+3;
|
||||||
const uint16_t sum_win_width = 1+DATE_LEN+1+(SUM_FIELD_NUM*4);
|
const uint16_t sum_win_width = 1+DATE_LEN+1+(SUM_FIELD_NUM*4);
|
||||||
const float absence_threshold = resp_from_api["PercentageThreshold"].get<float>()*100.0f;
|
const float absence_threshold = resp_from_api["PercentageThreshold"].get<float>()*100.0f;
|
||||||
{
|
{
|
||||||
@ -74,7 +74,8 @@ void absence_page() {
|
|||||||
wattroff(sum_win, sum_field_colors[i]);
|
wattroff(sum_win, sum_field_colors[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = 0; resp_from_api["Absences"].size()-1 > i; i++) {
|
// iterate true all dates
|
||||||
|
for (size_t i = 0; resp_from_api["Absences"].size() > i; i++) {
|
||||||
mvwaddch(sum_win, 2+(i*2), 0, ACS_LTEE);
|
mvwaddch(sum_win, 2+(i*2), 0, ACS_LTEE);
|
||||||
mvwhline(sum_win, 2+(i*2), 1, ACS_HLINE, DATE_LEN);
|
mvwhline(sum_win, 2+(i*2), 1, ACS_HLINE, DATE_LEN);
|
||||||
mvwaddch(sum_win, 2+(i*2), 1+DATE_LEN, ACS_PLUS);
|
mvwaddch(sum_win, 2+(i*2), 1+DATE_LEN, ACS_PLUS);
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#include <string_view>
|
#include <string_view>
|
||||||
#ifndef VERSION
|
#ifndef VERSION
|
||||||
|
|
||||||
#define VERSION "1.0.3"
|
#define VERSION "1.0.4"
|
||||||
#define NAME "bakatui"
|
#define NAME "bakatui"
|
||||||
|
|
||||||
inline constexpr auto hash_djb2a(const std::string_view sv) {
|
inline constexpr auto hash_djb2a(const std::string_view sv) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user