remove tracked mapper restriction for now

This commit is contained in:
Michael Zhang 2021-07-21 17:18:49 -05:00
parent 1bfb3caf55
commit 8e0d33f8b4
Signed by: michael
GPG Key ID: BDA47A31A3C8EE6B
1 changed files with 6 additions and 5 deletions

View File

@ -42,13 +42,14 @@ func (s *Scraper) scrapePendingMaps() {
}
mapperId := beatmapSet.UserID
if _, ok := trackedMappers[mapperId]; ok {
if _, ok2 := allNewMaps[mapperId]; !ok2 {
allNewMaps[mapperId] = make([]osuapi.Beatmapset, 0)
}
allNewMaps[mapperId] = append(allNewMaps[mapperId], beatmapSet)
// if _, ok := trackedMappers[mapperId]; ok {
if _, ok2 := allNewMaps[mapperId]; !ok2 {
allNewMaps[mapperId] = make([]osuapi.Beatmapset, 0)
}
allNewMaps[mapperId] = append(allNewMaps[mapperId], beatmapSet)
// }
}
if len(allNewMaps) > 0 {