Hello,
What is a good way to compare new data with old data which is updated
everyday with Django ORM? Basically I have a scraper which fetches
hackathons everyday (basically just a celery task) and I want the newest to
be unioned it with my master database which has the latest fetched
hackathons
obj = Hackathon(**each_dict)
obj.save()
On Saturday, September 18, 2021 at 10:31:46 AM UTC-4 J.T. wrote:
> Take a look at update_or_create()
>
>
> https://docs.djangoproject.com/en/3.2/ref/models/querysets/#update-or-create
>
> On Sat, Sep 18, 2021, 9:27 AM Adib Neymar Jr. wrote:
>
2 matches
Mail list logo