Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Assignment8 #6

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Assignment8 #6

wants to merge 5 commits into from

Conversation

cryptokage1996
Copy link
Owner

No description provided.

Copy link
Collaborator

@ayardi ayardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please incorporate the review comments. Also, make your code modular. Move controllers, routes into respective folders.

const text_tax = require('./sales_imported_text');
app.use("/", bodyParser.json());
app.use("/", bodyParser.text())
app.get("/", (req, res) =>{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting?

})
let restime=new Date().getTime();
res.end();
} if (req.headers["content-type"] == "text/plain") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same line?

regex = new RegExp('(\\d+)');
temp = sentences[i].split(regex);
quantity.push(temp[1]);
lastind=temp[2].lastIndexOf("at");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh ugh

sales=0
for(let i=1;i<sentences.length;i++){
sales+=text_tax.sales_tax(quantity[i-1],body[i-1],price[i-1])+text_tax.imported_tax(quantity[i-1],body[i-1],price[i-1]);
aftertax=parseFloat(price[i-1])+text_tax.sales_tax(quantity[i-1],body[i-1],price[i-1])+text_tax.imported_tax(quantity[i-1],body[i-1],price[i-1]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not just a murder. This is genocide!

down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('orders');
}
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants