Giter Site home page Giter Site logo

Comments (5)

KatrinaHoffert avatar KatrinaHoffert commented on August 15, 2024

Once the schema and SQL generator is updated, the Violation.getViolations method needs to be updated.

from eatsafe.

LujieDuan avatar LujieDuan commented on August 15, 2024

There isn't any violation name in the report. But there are detailed explanations on their website for each violation. http://www.health.gov.sk.ca/adx/aspx/adxGetMedia.aspx?DocID=9a42d80d-a17d-4b31-bd7b-4629220e6712&MediaID=3144&Filename=restaurant-inspections-critical-general-items.pdf&l=English

In the report, the violation is in form of: 1 - Refrigeration/Cooling/Thawing (must be 4°C/40°F or lower),
So I use 1 as ID and the rest as description, and no name.

We can use the explanation from the above link, then the DB will be:
ID: 1
Name: Refrigeration/Cooling/Thawing (must be 4°C/40°F or lower)
Description: Potentially hazardous foods and perishable foods must be stored at 4oC/40oF or below.
Hazardous foods must be thawed in a refrigerator or under cold, running water.

Do you want me to change the schema to that?

from eatsafe.

KatrinaHoffert avatar KatrinaHoffert commented on August 15, 2024

I see. My bad. You'll have to hard-code the descriptions into the violation
type using the data from the website.
On Feb 8, 2015 1:36 PM, "lujie duan" [email protected] wrote:

There isn't any violation name in the report. But there are detailed
explanations on their website for each violation.
http://www.health.gov.sk.ca/adx/aspx/adxGetMedia.aspx?DocID=9a42d80d-a17d-4b31-bd7b-4629220e6712&MediaID=3144&Filename=restaurant-inspections-critical-general-items.pdf&l=English

In the report, the violation is in form of: 1 -
Refrigeration/Cooling/Thawing (must be 4°C/40°F or lower),
So I use 1 as ID and the rest as description, and no name.

We can use the explanation from the above link, then the DB will be:
ID: 1
Name: Refrigeration/Cooling/Thawing (must be 4°C/40°F or lower)
Description: Potentially hazardous foods and perishable foods must be
stored at 4oC/40oF or below.
Hazardous foods must be thawed in a refrigerator or under cold, running
water.

Do you want me to change the schema to that?


Reply to this email directly or view it on GitHub
#23 (comment).

from eatsafe.

LujieDuan avatar LujieDuan commented on August 15, 2024

please review the commits

from eatsafe.

KatrinaHoffert avatar KatrinaHoffert commented on August 15, 2024

Looks good. Closing as complete.

from eatsafe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.