Giter VIP home page Giter VIP logo

Comments (6)

M-ZubairAhmed avatar M-ZubairAhmed commented on May 22, 2024

Is this done ? because i can see in the website dates are properly there? or am i looking at the wrong section
image

Also could you tell me in which format do you have in your database? so i can convert it properly

from prosecutor-database.

billimarie avatar billimarie commented on May 22, 2024

Hi @M-ZubairAhmed, thanks for checking it out.

Each attorney entry in the database is formatted in JSON:

{
    "_id": {
        "$oid": "5919ed1c734d1d1cd0be9d88"
    },
    "attorney-id": "ua-al-m",
    "name": "A. Clark Morris",
    "role": "U.S. Attorney",
    "state": "Alabama",
    "district": "Middle District of Alabama",
    "appointed": "2017-03-11"
}

As you'll notice, the "appointed date" is just a string. Hopefully this can be changed so that in the future, a user will be able to use the app to filter through dates. If you have an idea of how to do this, please feel free to submit a pull request.

from prosecutor-database.

callan-stretton avatar callan-stretton commented on May 22, 2024

I'll see if I can figure it out...

from prosecutor-database.

pidddgy avatar pidddgy commented on May 22, 2024

Hey, i'd be interested in doing this. Where is the json located?

from prosecutor-database.

Thai56 avatar Thai56 commented on May 22, 2024

In api/data/usAttorneys.js I changed the "appointed" date to be a unix time stamp so that it would be easier to sort. In client/templates/sections/current-prosecutors.html I updated the appointed section to display month-day-year. When I open up localhost:3000 I am not able to see anything.

from prosecutor-database.

billimarie avatar billimarie commented on May 22, 2024

Thanks for the assistance, everyone. Closing out thanks to @Thai56's pull-request: #31

from prosecutor-database.

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.