No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

30 líneas
1.2KB

  1. # Copyright (C) 2019 Campaign Against Arms Trade
  2. #
  3. # This program is free software: you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation, either version 3 of the License, or
  6. # (at your option) any later version.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  14. """Script to generate a seating plan via calendar events in an organisation's Office365."""
  15. import os
  16. import logging
  17. STRFTIME = "%Y-%m-%dT%H:%M:%S"
  18. STRPTIME = "%Y-%m-%dT%H:%M:%S.%f"
  19. # Put access token where the file is so it can always access it.
  20. ACCESS_TOKEN = f"{os.path.dirname(os.path.realpath(__file__))}/access_token"
  21. LOG = logging.getLogger('supper')
  22. HANDLER = logging.StreamHandler()
  23. LOG.addHandler(HANDLER)
  24. HANDLER.setFormatter(logging.Formatter('%(levelname)s: %(asctime)s - %(message)s'))