mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
compare time on uni orders
This commit is contained in:
@@ -57,11 +57,13 @@ class Orders():
|
||||
|
||||
orders = []
|
||||
for item in r.json()['items']:
|
||||
orders.append({
|
||||
order = {
|
||||
'git_url' : item['repo'],
|
||||
'email' : None,
|
||||
'time' : datetime.strptime(item['time'], '%Y-%m-%dT%H:%M:%S.%f%z').replace(tzinfo=pytz.UTC)
|
||||
})
|
||||
}
|
||||
if order['time'] > self.open_date.replace(tzinfo=pytz.UTC):
|
||||
orders.append(order)
|
||||
logging.info(f"fetched university {len(orders)} orders")
|
||||
return orders
|
||||
|
||||
|
||||
Reference in New Issue
Block a user