Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
239 B
28
Indexable
Never
import datetime
def input_paths(date, depth):
	dt = datetime.datetime.strptime(date, '%Y-%m-%d')
	return [f"/user/<username>/data/events/date={(dt-datetime.timedelta(days=x)).strftime('%Y-%m-%d')}/event_type=message" for x in range(depth)]
Leave a Comment