forked from University/epr24pr5-ojanssen2
fix: Fixed data_type of list
This commit is contained in:
parent
b9baf02866
commit
dfc274942b
1 changed files with 3 additions and 3 deletions
|
@ -19,13 +19,13 @@ namespace commands
|
|||
{
|
||||
Manager& mgr = Manager::get_instance();
|
||||
const string data_type = Util::read_string(args);
|
||||
if (data_type == "user")
|
||||
if (data_type == "users")
|
||||
for (const User* u : mgr.get_users())
|
||||
cout << *u;
|
||||
else if (data_type == "task")
|
||||
else if (data_type == "tasks")
|
||||
for (const Task* t : mgr.get_tasks())
|
||||
cout << *t;
|
||||
else if (data_type == "assignment")
|
||||
else if (data_type == "assignments")
|
||||
for (const Assignment* a : mgr.get_assignments())
|
||||
cout << *a;
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue