Skip to content

jbc-1023/narmi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mildred is retiring!

After 60 years of service.
Please sign her farewell card here

How to run?

  1. Run get_movie_time.py |input file here| and receive this week's schedule
  2. That's it!

How to change hours?

If you need to change hours for this week, update them in the hours.ini file.

Support

Any issues, please contact script creator here

Dev notes:

Specs

  • Operation hours
    • Monday - Thursday, 8:00AM - 11:00PM
    • Friday - Sunday, 10:30AM - 11:30PM
    • Make them parametrized, subject to change.
  • Overhead
    • Beginning of day: 1 hour setup before any movie.
    • 35 mins between movies.
    • Movie cannot end after theatre closing time, which is midnight
    • Movie cannot start after theatre hours. I.e., Between theatre hours end and closing time.
  • Prioritize movies schedule later in the day
  • Have rounded times. E.g., 4:00PM, 2:35PM. Not 6:32PM
  • Assume movie theatre has no limit of number of screens.
  • Soft performance spec: Must return answer within reasonable time (e.g., less than 5 sec)
  • Input is CSV
    • No commans expected in data payloads.
    • No limit on size.
    • Assume char set UTF-8.
  • Output
    • Show the date in format Day of week name|MM|DD|YYYY|
    • Show the movie name, rating, and duration in 24 hour "military" time format
    • Show the available show times and end time for every movie

Test data

  • happy_path.csv "Happy path" data
  • error_handle.csv Possible valid CSV but contains invalid data for our application
    • Special chars
    • Empty value
    • Invalid year
    • Invalid runtime
    • Duplicate entries
    • UTF-8 chars
  • line_break.csvMistaken line feeds
  • duplicate.csvDuplicate movies
  • not_a_csv.csv A regular text file
  • empty_file.csv An empty file
  • stress.csv A really long file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages