busy-boys / moovie-pro

A tool for comparing the financial successes of films. Results are CPI adjusted
https://moovie.pro/
0 stars 0 forks source link

CL20 & CL30 - Look at Profit Budget #6

Closed daveholst closed 3 years ago

daveholst commented 3 years ago

Users should be able to retrieve movie profit / budget information

TODO:

daveholst commented 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)

daveholst commented 3 years ago

API KEY: d38648803859bebf97aabe61377bba3c

daveholst commented 3 years ago

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:

and I reckon that will be a wrap for that function!! 🍻

rorylkd commented 3 years ago

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 .

daveholst commented 3 years ago

All sorted on this one 👍 . I'm closing it out and moving it to the done pile!