Comments (6)
Is this done ? because i can see in the website dates are properly there? or am i looking at the wrong section
Also could you tell me in which format do you have in your database? so i can convert it properly
from prosecutor-database.
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.
I'll see if I can figure it out...
from prosecutor-database.
Hey, i'd be interested in doing this. Where is the json located?
from prosecutor-database.
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.
Thanks for the assistance, everyone. Closing out thanks to @Thai56's pull-request: #31
from prosecutor-database.
Related Issues (20)
- [DESIGN] New Theme for Entire Web App HOT 17
- [CODE] Add "Location (State)" Filter HOT 2
- [CODE] Add "Appointed" Filter HOT 5
- [CODE] Add "Party Affiliation" Filter
- [CODE] Add "Age Range" Filter HOT 24
- [CODE] Add "Race" Filter HOT 5
- [CODE] Add "Gender" Filter HOT 7
- [CODE] Add "Location (County)" Filter HOT 7
- [CODE] Convert Iron Router to Flow Router HOT 7
- [DESIGN] Main Filter HOT 7
- [APP] Force SSL HOT 9
- [CODE] Fix "Relevant Cases" to match "Articles" HOT 7
- [FEATURE] SEO HOT 9
- [HACKTOBER] Separate `app` from `data`
- [DATA] Sanitize "Additional Filter" data HOT 1
- [FEATURE] Research & Implementation: Data Sources HOT 6
- [CODE] Create Unit Tests, Consider Continuous Integration HOT 4
- [DESGIN] Previous Prosecutors HOT 7
- [CODE] Previous Prosecutors HOT 3
- Htn
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prosecutor-database.