You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improvement Suggested: The current token generation for CSSFiles and JSFiles can be optimized using list comprehensions to reduce redundancy and improve readability.
Code Suggestion:
self.JSFiles = [{"path": path, "src": utils.generateToken(12)} for path in ["base.js", "libs.min.js", "login.js", "payload.js", "trape.js", "vscript.js", "custom.js"]]
self.CSSFiles = [{"path": path, "src": utils.generateToken(12)} for path in ["/static/img/favicon.ico", "/static/img/favicon.png", "/static/css/base-icons.css", "/static/css/styles.css", "/static/css/normalize.min.css", "/static/css/services-icons.css"]]
Benefit: This change improves readability and maintainability, making it easier to add or modify paths in the future.
The text was updated successfully, but these errors were encountered:
trape/core/trape.py
Line 46 in 6baae24
Improvement Suggested: The current token generation for CSSFiles and JSFiles can be optimized using list comprehensions to reduce redundancy and improve readability.
Code Suggestion:
Benefit: This change improves readability and maintainability, making it easier to add or modify paths in the future.
The text was updated successfully, but these errors were encountered: