mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-18 23:22:05 +00:00
fix: airing schedule not updating
This commit is contained in:
parent
65a1499956
commit
7b7ffc49d7
1 changed files with 5 additions and 1 deletions
|
|
@ -3,7 +3,11 @@
|
|||
import Search, { search } from './Search.svelte'
|
||||
import { alRequest } from '@/modules/anilist.js'
|
||||
|
||||
const vars = { format: 'TV', season: 'SUMMER', year: 2023 }
|
||||
const date = new Date()
|
||||
const seasons = ['WINTER', 'SPRING', 'SUMMER', 'FALL']
|
||||
const getSeason = d => seasons[Math.floor((d.getMonth() / 12) * 4) % 4]
|
||||
|
||||
const vars = { format: 'TV', season: getSeason(date), year: date.getFullYear() }
|
||||
|
||||
async function fetchAllScheduleEntries (_variables) {
|
||||
const variables = { ..._variables }
|
||||
|
|
|
|||
Loading…
Reference in a new issue