Loading config.py.sample +3 −1 Original line number Diff line number Diff line Loading @@ -23,3 +23,5 @@ FORMAT_TIME = "%H:%M" FORMAT_DATETIME = FORMAT_DATE + " " + FORMAT_TIME TEMPLATE_FILE = "plain.jinja" # Template file in templates/ DRYRUN = False # Print to console instead sending an email. No newline at end of file ical2mail.py +6 −5 Original line number Diff line number Diff line Loading @@ -238,11 +238,12 @@ def main(): events = sorted(events, key=lambda event: event[1]) output_text = generate_output(events) if config.DRYRUN: print("TITLE: " + output_text[1]) print("----------------------------------------") print(output_text[0].replace(' ', ' ')) else: send_mail(output_text) # print("TITLE: " + output_text[1]) # print("----------------------------------------") # print(output_text[0].replace(' ', ' ')) if __name__ == "__main__": main() Loading
config.py.sample +3 −1 Original line number Diff line number Diff line Loading @@ -23,3 +23,5 @@ FORMAT_TIME = "%H:%M" FORMAT_DATETIME = FORMAT_DATE + " " + FORMAT_TIME TEMPLATE_FILE = "plain.jinja" # Template file in templates/ DRYRUN = False # Print to console instead sending an email. No newline at end of file
ical2mail.py +6 −5 Original line number Diff line number Diff line Loading @@ -238,11 +238,12 @@ def main(): events = sorted(events, key=lambda event: event[1]) output_text = generate_output(events) if config.DRYRUN: print("TITLE: " + output_text[1]) print("----------------------------------------") print(output_text[0].replace(' ', ' ')) else: send_mail(output_text) # print("TITLE: " + output_text[1]) # print("----------------------------------------") # print(output_text[0].replace(' ', ' ')) if __name__ == "__main__": main()