Skip to content

Commit 219ed56

Browse files
committed
🌈 cleanup manifest and README, run pre-commit
1 parent 0623e4a commit 219ed56

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

database_limit_size/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ Further information
3838
Odoo Apps Store: https://apps.odoo.com/apps/modules/14.0/database_limit_size/
3939

4040

41-
Notifications on updates: `via Atom <https://github.com/it-projects-llc/access-addons/commits/14.0/database_limit_size.atom>`_, `by Email <https://blogtrottr.com/?subscribe=https://github.com/it-projects-llc/access-addons/commits/14.0/database_limit_size.atom>`_
41+
Notifications on updates: `via Atom <https://github.com/itpp-labs/access-addons/commits/14.0/database_limit_size.atom>`_, `by Email <https://blogtrottr.com/?subscribe=https://github.com/itpp-labs/access-addons/commits/14.0/database_limit_size.atom>`_
4242

4343
Tested on `Odoo 14.0 <https://github.com/odoo/odoo/commit/8ca3ea063050f2ab2d19cce8a68116489872a734>`_

database_limit_size/__manifest__.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@
55
"name": """Database Limit Size""",
66
"summary": """This module allows blocking backend access when database limit is exceeded""",
77
"category": "Extra Tools",
8-
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version=14.0",
98
"images": [],
109
"version": "14.0.1.0.0",
1110
"application": False,
1211
"author": "IT-Projects LLC, Eugene Molotov",
13-
"support": "apps@it-projects.info",
14-
"website": "https://apps.odoo.com/apps/modules/14.0/database_limit_size/",
12+
"support": "help@itpp.dev",
13+
"website": "https://twitter.com/OdooFree",
1514
"license": "Other OSI approved licence", # MIT
16-
# "price": 9.00,
17-
# "currency": "EUR",
1815
"depends": ["database_block"],
1916
"external_dependencies": {"python": [], "bin": []},
2017
"data": [],
@@ -26,14 +23,4 @@
2623
"uninstall_hook": None,
2724
"auto_install": False,
2825
"installable": True,
29-
# "demo_title": "Database Limit Size",
30-
# "demo_addons": [
31-
# ],
32-
# "demo_addons_hidden": [
33-
# ],
34-
# "demo_url": "DEMO-URL",
35-
# "demo_summary": "This module allows to block user to backend when database limit is exceed",
36-
# "demo_images": [
37-
# "images/MAIN_IMAGE",
38-
# ]
3926
}

database_limit_size/models/ir_http.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ def session_info(self):
4141
total_size = database_size + filestore_size
4242
if total_size > database_limit_size:
4343
res["database_block_message"] = "Database size exceed ({} / {})".format(
44-
human_size(total_size), human_size(database_limit_size),
44+
human_size(total_size),
45+
human_size(database_limit_size),
4546
)
4647
elif total_size > database_limit_size * 0.9:
47-
res["database_block_message"] = (
48-
"Database size is about to be exceed (%s / %s)"
49-
% (human_size(total_size), human_size(database_limit_size))
48+
res[
49+
"database_block_message"
50+
] = "Database size is about to be exceed (%s / %s)" % (
51+
human_size(total_size),
52+
human_size(database_limit_size),
5053
)
5154
res["database_block_is_warning"] = True
5255

0 commit comments

Comments
 (0)