Commit graph

11 commits

Author SHA1 Message Date
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Ankush Menat
05f9201e07 fix: dont manually commit after flushing deferred_insert
this runs from scheduled job which commits after finishing.
2022-05-04 14:59:19 +05:30
Ankush Menat
ed78a23748 fix: handle dict data in deferred_insert
vanilla dict doesn't have attrs, setattr fails
2022-05-04 14:59:17 +05:30
Gavin D'souza
88e53556b0 Merge branch 'develop' of github.com:frappe/frappe into deferred_insert-refactor 2022-04-12 12:23:55 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Gavin D'souza
e887208b27 refactor: deferred_insert
* Fallback to insert in realtime if redis conn fails
* Allow List and str inputs for deferred insert API
* Set doctype value unconditionally in insert_record
* Use frappe.logger instead of print
* Add type hints
2022-04-05 18:38:06 +05:30
Suraj Shetty
0e32d52e3a fix: Use separate API to insert route history 2021-11-29 16:38:15 +05:30
pengfeiqin
b9d6e2d1ea fix: deferred insert json.loads() typeError (#6577) 2018-12-06 20:14:51 +05:30
Suraj Shetty
862a646612 Add minor fixes 2018-10-21 09:53:05 +05:30
Suraj Shetty
ee362fb36d Fix route deferred insert 2018-10-21 09:53:05 +05:30
Suraj Shetty
011b4c8355 Move deferred insert code to separate file 2018-10-21 09:53:05 +05:30