openclimatefix / pv-site-datamodel

Datamodel for PV sites
MIT License
2 stars 9 forks source link

Write api request #112

Closed peterdudfield closed 7 months ago

peterdudfield commented 8 months ago

Detailed Description

It would be good to have a function that takes in the API request and user, and saves to the databsae

Context

Possible Implementation

very similar to this function https://github.com/openclimatefix/uk-pv-national-gsp-api/blob/main/src/database.py#L387, but using this datamodel

CristianStClairSanDiego commented 7 months ago

Hey Peter, I was looking to apply for the Google Summer of Code and this OCF looked exciting. I wanted to get a taste of what the codebase looks like, so I was going through your "good first issue" tasks. I'm very new to open source but can I take a look at this? Thanks!

suleman1412 commented 7 months ago

Hi Peter, can I get assigned to this issue?

suleman1412 commented 7 months ago

hey @peterdudfield I have made the changes, Could you please take a look and let me know if everything looks okay to you?