Fix get function
This commit is contained in:
parent
0b4ba4e0f9
commit
2d7cc4fab9
2
main.cpp
2
main.cpp
@ -73,7 +73,7 @@ void get( const std::shared_ptr< restbed::Session > session ) {
|
|||||||
bool atleastone = false;
|
bool atleastone = false;
|
||||||
for(auto &x : restaurants) {
|
for(auto &x : restaurants) {
|
||||||
atleastone = true;
|
atleastone = true;
|
||||||
ss << x->jsonify() << ",";
|
ss << x->jsonify({day}) << ",";
|
||||||
}
|
}
|
||||||
if(atleastone)
|
if(atleastone)
|
||||||
ss.seekp(-1, ss.cur);
|
ss.seekp(-1, ss.cur);
|
||||||
|
Loading…
Reference in New Issue
Block a user