Giter Site home page Giter Site logo

calendar_csv's Introduction

Top Langs Aaron's GitHub stats

Who I Am

I'm a hacker, maker and mender of things. I love an interesting challenge and can't resist being nerd sniped.

More About Me

  • ๐Ÿ”ญ Iโ€™m currently working on building SQL queries for to interface Student Information Systems with Learning Management Systems
  • ๐ŸŒฑ Iโ€™m currently learning SQL
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on PaperPi, a quiet internet radio
  • ๐Ÿ“ซ How to reach me:
  • ๐Ÿ“œMy Resume of Projects
  • ๐Ÿ˜„ Pronouns: He/Him

calendar_csv's People

Contributors

txoof avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

calendar_csv's Issues

Crashes on bad date format

handle crash on bad date formate more gracefully

$ ./gcal_csv_generator.py --schedule_file ./ms_bell_schedule.csv --start "2023/-8/16" --end "2024/06/13" --non_instruction non_instruction_23-24.csv
Traceback (most recent call last):
  File "/Users/aaronciuffo/Documents/src/calendar_csv/./gcal_csv_generator.py", line 443, in <module>
    q = main()
  File "/Users/aaronciuffo/Documents/src/calendar_csv/./gcal_csv_generator.py", line 367, in main
    school_days = set_school_days(start=start, end=end,
  File "/Users/aaronciuffo/Documents/src/calendar_csv/./gcal_csv_generator.py", line 243, in set_school_days
    start_dt = datetime.strptime(start, dt_format)
  File "/Users/aaronciuffo/.pyenv/versions/3.10.4/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/_strptime.py", line 568, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
  File "/Users/aaronciuffo/.pyenv/versions/3.10.4/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '2023/-8/16' does not match format '%Y/%m/%d'
12:34:01

simplify schedule CSV conversion to JSON

Convert to JSON on the fly from CSV rather than force conversion process

This simplifies displaying help and makes it easier to work with CSV rather than ugly JSON for end users.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.