A mirror of dcurooms found at https://github.com/theycallmemac/dcurooms
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.

56 lines
1.6 KiB

  1. import datetime
  2. import sys
  3. __author__ = "theycallmemac"
  4. __version__ = '2.0.0'
  5. __copyright__ = 'Copyright (c) 2018 theycallmemac'
  6. __license__ = 'GPL-3.0'
  7. def get_lst(c, g, options):
  8. if options.computing: lst = c
  9. elif options.grattan: lst = g
  10. return lst
  11. def get_current_time(date):
  12. day = date.weekday()
  13. hour = date.hour
  14. minute = date.minute
  15. year, week_no, weekday = date.isocalendar()
  16. start = 36
  17. if week_no >= start:
  18. offset = -start
  19. else:
  20. offset = 52 - start
  21. week = week_no + offset - 1
  22. return str(week), str(day + 1), str(hour), str(minute)
  23. def get_version_email():
  24. if int(sys.version[0]) < 3:
  25. email = raw_input("Your gmail: ")
  26. password = raw_input("Your gmail password: ")
  27. your_name = raw_input("Your name: ")
  28. society = raw_input("Society name: ")
  29. return email, password, your_name, society
  30. else:
  31. email = str(input("Your gmail: "))
  32. password = input("Your gmail password: ")
  33. your_name = input("Your name: ")
  34. society = input("Society name: ")
  35. return email, password, your_name, society
  36. def get_version_form():
  37. if int(sys.version[0]) < 3:
  38. name = raw_input("Your name: ")
  39. email = raw_input("Your email: ")
  40. number = raw_input("Your number: ")
  41. society = raw_input("Society name: ")
  42. return email, number, name, society
  43. else:
  44. name = string(input("Your name: "))
  45. email = input("Your email: ")
  46. number = input("Your number: ")
  47. society = input("Society name: ")
  48. return email, number, name, society