speed up the script a bit. changed the sleeps..
Merge branch 'lifecycle-fix'
This commit is contained in:
commit
43d596c291
1 changed files with 1 additions and 2 deletions
|
@ -97,7 +97,6 @@ def main():
|
||||||
person.creation.split('.')[0], '%Y-%m-%d %H:%M:%S')
|
person.creation.split('.')[0], '%Y-%m-%d %H:%M:%S')
|
||||||
if now - creation > delta:
|
if now - creation > delta:
|
||||||
hit_em_up(badge, person)
|
hit_em_up(badge, person)
|
||||||
time.sleep(60)
|
|
||||||
|
|
||||||
|
|
||||||
def hit_em_up(badge, fas_user):
|
def hit_em_up(badge, fas_user):
|
||||||
|
@ -111,7 +110,7 @@ def hit_em_up(badge, fas_user):
|
||||||
print email, "already has", badge.id, "skipping."
|
print email, "already has", badge.id, "skipping."
|
||||||
return
|
return
|
||||||
|
|
||||||
time.sleep(1)
|
time.sleep(15)
|
||||||
print "awarding", badge.id, "to", email
|
print "awarding", badge.id, "to", email
|
||||||
try:
|
try:
|
||||||
transaction.begin()
|
transaction.begin()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue