admin scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
282 B

  1. #!/usr/bin/env python
  2. """ generate new years ldif"""
  3. import sys
  4. for i in sys.stdin:
  5. i = i.rstrip()
  6. if i.startswith("yearsPaid:"):
  7. print("yearsPaid:", int(i.split()[1]) - 1)
  8. elif i.startswith("newbie:"):
  9. print("newbie: FALSE")
  10. else:
  11. print(i)