Commit graph

10 commits

Author SHA1 Message Date
Ankush Menat
3414c0d063 refactor!: Merge redis_socketio and redis_queue
- realtime communication uses pub-sub and no storage. So using same
  redis server for both should be just fine.
- This is how FC works since quite a lot of time. We haven't seen any
  problem so far.
2023-06-11 11:40:22 +05:30
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
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
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
mergify[bot]
a1f15245f7
Merge pull request #12726 from zerodha/check_connections
fix: global get_conf() fails to return site config
2021-03-30 15:11:45 +00:00
Shridhar
86d372c4f6 fix: global get_conf() fails to return site config 2021-03-30 17:13:04 +05:30
Shridhar
5deec996b6 fix: updated postgres default port 2021-03-29 15:16:27 +05:30
Chinmay D. Pai
c0d0fcfd69
chore: do not hardcode anything for postgres
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-13 19:24:51 +05:30
Chinmay D. Pai
318e397ab3
chore: unquote db_type
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-13 19:13:43 +05:30
Chinmay D. Pai
a25088a606
chore: show message on migrate when services are not running
shows message before migrate if the database or redis service is not running
instead of trying to migrate and then failing.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-13 19:10:19 +05:30