Skip to content

fix(enrichment): default to next week on weekends#1899

Open
ZamanZahid wants to merge 1 commit into
tjcsl:devfrom
ZamanZahid:fix-enrichment-final
Open

fix(enrichment): default to next week on weekends#1899
ZamanZahid wants to merge 1 commit into
tjcsl:devfrom
ZamanZahid:fix-enrichment-final

Conversation

@ZamanZahid
Copy link
Copy Markdown

Proposed changes

  • Added a helper function for the default enrichment date
  • Updated enrichment_ context to use the new logic
  • Show next week's enrichments on weekends if there are no enrichments left that weekend

Brief description of rationale

Right now, the enrichment page shows the previous week on Saturdays and Sundays even though signups are closed after Friday. This changde makes it show the next week instead unless there is something happeningg that weekend.

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 79.227% (-0.04%) from 79.264% — ZamanZahid:fix-enrichment-final into tjcsl:dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants