diff --git a/Interface.cpp b/Interface.cpp index a4dfd93..06a6c34 100644 --- a/Interface.cpp +++ b/Interface.cpp @@ -264,11 +264,13 @@ pair create_week_period() { void report_all_spots(bool weekly) { pair period; if (weekly) { - pair period = create_week_period(); + period = create_week_period(); // remove the pair } else { - pair 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 period; if (weekly) { - pair period = create_week_period(); + period = create_week_period(); // remove the pair } else { - pair period = create_month_period(); + period = create_month_period(); } reports_from_parkspot(spotID, period); } diff --git a/test.db3 b/test.db3 index 9bcaa3d..6f05261 100644 Binary files a/test.db3 and b/test.db3 differ