mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Load only one set of CSS files per module.
There are times, a module is loaded multiple times, and returns same set of CSS files mulitple times, in order to avoid loading the same file multiple times, we will create a set out of the list of CSS files.
This commit is contained in:
@@ -57,7 +57,7 @@ class PgAdmin(Flask):
|
|||||||
stylesheets = []
|
stylesheets = []
|
||||||
for module in self.submodules:
|
for module in self.submodules:
|
||||||
stylesheets.extend(getattr(module, "stylesheets", []))
|
stylesheets.extend(getattr(module, "stylesheets", []))
|
||||||
return stylesheets
|
return set(stylesheets)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def messages(self):
|
def messages(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user