fix: slow posting datetime update by rohitwaghchaure [frappe] PR#44799
From: https://github.com/frappe/erpnext/pull/44799
Date: 2024-12-20 10:12:12+05:30
- fix: slow posting datetime update (#44799)
Diagnostics
pre-commit failed for source commit: a7b5e2565bf93b5d08d754b3e6765fef97ab70b6
[WARNING] top-level `default_stages` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this.
[WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo.
erpnext/stock/doctype/serial_and_batch_bundle/test_serial_and_batch_bundle.py:774:9: RUF015 Prefer `next(iter(batches.keys()))` over single element slice
erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py:317:32: UP031 Use format specifiers instead of percent format
erpnext/stock/doctype/stock_reconciliation/test_stock_reconciliation.py:156:3: F841 Local variable `to_delete_serial_nos` is assigned to but never used
erpnext/stock/doctype/stock_reconciliation/test_stock_reconciliation.py:531:3: F841 Local variable `sr` is assigned to but never used
erpnext/stock/doctype/stock_reconciliation/test_stock_reconciliation.py:535:3: F841 Local variable `dn` is assigned to but never used
erpnext/stock/doctype/stock_reconciliation/test_stock_reconciliation.py:542:3: F841 Local variable `sr2` is assigned to but never used
erpnext/stock/doctype/stock_reconciliation/test_stock_reconciliation.py:768:3: F841 Local variable `se` is assigned to but never used
Found 7 errors.
No fixes available (7 hidden fixes can be enabled with the `--unsafe-fixes` option).
Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-pr-44799
# Alternatively, re-take the changes
git switch develop
ft take ft-pr-44799
# Make changes then rebase
git rebase -i develop
# Fix or ignore conflicts
git checkout --theirs .
git rebase --continue
# Force-push changes
git push --force-with-lease