-
Notifications
You must be signed in to change notification settings - Fork 98
feat(mainpage): automate 'in memory of' display in mainpages #6943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: days-to-seconds
Are you sure you want to change the base?
Conversation
hjpalpha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fwiw when rolling this out we need to check if there is some usage of the current inmemory stuff so we do not double display banners
lua/wikis/commons/MainPageLayout.lua
Outdated
| conditions = tostring(ConditionTree(BooleanOperator.all):add{ | ||
| ConditionNode(ColumnName('deathdate'), Comparator.neq, DateExt.defaultDate), | ||
| ConditionNode(ColumnName('deathdate'), Comparator.ge, DateExt.toYmdInUtc( | ||
| DateExt.getCurrentTimestamp() - 1209600 --[[2 weeks]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move the number into a const var
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4da64fb to
43e4b93
Compare
Summary
Depends on #6946
This PR automates use of #5569 in main pages.
How did you test this change?
https://liquipedia.net/leagueoflegends/User:ElectricalBoy/MainPage (dev uses 4 week offset for testing purposes instead of 2 weeks as specified in this PR)