Skip to content

Refactor tasks.py to handle code duplication - #225

Merged
Lorygold merged 2 commits into
certego:developfrom
kunalsz:refactor-deletion-of-old-data
Apr 8, 2025
Merged

Lorygold merged 2 commits into
certego:developfrom
kunalsz:refactor-deletion-of-old-data

Conversation

@kunalsz

@kunalsz kunalsz commented Apr 3, 2025

Copy link
Copy Markdown
Contributor

In reference to the issue #224

  • A new helper function delete_old_data has been created which takes the Model and days as arguments and deletes the old data
  • This prevents duplication of code/logic and improves readability of code

@Lorygold @ManofWax Looking forward to your insights !

Signed-off-by: kunalsz <kunalavengers@gmail.com>
@Lorygold
Lorygold requested review from Lorygold and ManofWax April 3, 2025 14:17
Lorygold
Lorygold previously approved these changes Apr 3, 2025
@Lorygold

Lorygold commented Apr 8, 2025 •

Copy link
Copy Markdown
Contributor

Sorry @kunalsz, some conflicts have been occurred in the meanwhile, could you please resolve them?

@Lorygold
Lorygold merged commit 702567d into certego:develop Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] tasks.py/clean_models_periodically : Code Refactoring Proposal

2 participants