Timefuctions to get reports from any time after 1970 #10

Merged
MassiveAtoms merged 4 commits from timefunctions into billing 2019-07-21 22:24:36 +00:00
2 changed files with 6 additions and 4 deletions
Showing only changes of commit ef5ae9dac8 - Show all commits

View File

@ -264,11 +264,13 @@ pair<int, int> create_week_period() {
void report_all_spots(bool weekly) {
pair<int, int> period;
if (weekly) {
pair<int, int> period = create_week_period();
period = create_week_period(); // remove the pair<int, int>
} else {
pair<int, int> period = create_month_period();
period = create_month_period(); // ^
}
cout << "working timeperiods: " << period.first << ", " << period.second; // DEBUG
reports_from_allparkspots(period); // TODO: namechange of reports_from_allparkspots in query?
}
@ -280,9 +282,9 @@ void report_single_spot(bool weekly) {
cin.ignore(10000, '\n');
pair<int, int> period;
if (weekly) {
pair<int, int> period = create_week_period();
period = create_week_period(); // remove the pair<int, int>
} else {
pair<int, int> period = create_month_period();
period = create_month_period();
}
reports_from_parkspot(spotID, period);
}

BIN
test.db3

Binary file not shown.