Closed daveholst closed 3 years ago
Would be good if somebody can start work on a basic fetch function for this (preferablly returning a promise)
I suggest creating a profit.js file in the ./assets/js/
folder and start trying to get the data back.
Looks like all the info can come from the TMdB api: https://developers.themoviedb.org/3/movies/get-movie-details
If somebody wants to take this on just let us know in here and i'll assign the task to you (if you cant do it yourself)
API KEY: d38648803859bebf97aabe61377bba3c
CODE REVIEW Commit 030b491 - Adjusted budget and revenue based on historical CPI @rorylkd
This looks great and appears to be working well!
Just a few quick things to consider:
[x] line 164 if you can get that final object to also include/rename
revenue(orignal when movie was shot)
budget (original when movie was shot)
adjust revenue (cpi adjusted)
adjusted profit(cpi adjusted)
it will just make the data a bit easier to injest on the next stage! And change the property names to lowercase egrevenue: ...
[x] line 169 just change that to return adjustedFinancials
so we can injest the data with domBuilder.
and I reckon that will be a wrap for that function!! 🍻
Great! I'll make the changes as soon as I get home 👍 Thanks
On Sat, 17 Apr 2021, 11:19 am Dave Holst, @.***> wrote:
This looks great and appears to be working well!
Just a few quick things to consider:
-
line 164 if you can get that final object to also include/rename
revenue(orignal when movie was shot)
budget (original when movie was shot)
adjust revenue (cpi adjusted)
adjusted profit(cpi adjusted) it will just make the data a bit easier to injest on the next stage! And change the property names to lowercase egrevenue: ...
line 169 just change that to return adjustedFinancials so we can injest the data with domBuilder.
and I reckon that will be a wrap for that function!! 🍻
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/busy-boys/movie-master/issues/6#issuecomment-821757408, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASQSKHHZG2VYYOC7JQINTFLTJD43VANCNFSM424VW2TA .
All sorted on this one 👍 . I'm closing it out and moving it to the done pile!
Users should be able to retrieve movie profit / budget information
TODO:
- [ ] Event Handler / Trigger- [ ] Results should then be pushed to DOM (Stage Cards on add?)Moved to CL50 #15 - Add Information to Stage Card in DOM