(01-19-2021, 01:33 AM)Maglubiyet Wrote: The biggest outstanding issue with the script right now is related to the way it determines if users have completed Weekly Training. The timestamps on the forums were giving me fits, so the way it's implemented is that it works backwards until it finds the most recent training post on Sunday and gives credit to all of the people that completed training since then. If no one did training on a Sunday, I have no idea what will happen.
Can you parse the forum dates? If so, can you check something like
Code:
lastWeek = datetime.now() - timedelta(days=7)
for each player:
get most recent post
if post.time < lastWeek:
print that they didn't do it or whatever
That's obviously not perfect, but maybe a good starting heuristic?
![[Image: JYi8HmG.png]](https://i.imgur.com/JYi8HmG.png)
Draft Steal (retired S35 CB) - Profile/Update | Wiki
Troen Egghands (retired S22 DE) - Profile | Update | Wiki